nova: adjust to cmdline changes of kernel

- no need to explicitly switch off vga anymore
- use vPID for VMs which improves TLB usage if multiple vCPUs on same
  pCPU is used, which happens to happen on Sculpt.
- support for mwait by nova kernel, which is off by default

Issue #5206
This commit is contained in:
Alexander Boettcher 2024-05-02 11:26:25 +02:00 committed by Christian Helmuth
parent d9086833ed
commit b33afb24d7
7 changed files with 10 additions and 10 deletions

View File

@ -1 +1 @@
ee0aec8bb0626c61e73bc3c12d6cb5bf36ca9f79
0cf1d38402aae7cab3f19a01c791d3ee9b90545c

View File

@ -4,7 +4,7 @@ DOWNLOADS := nova.git
# r10 branch
URL(nova) := https://github.com/alex-ab/NOVA.git
REV(nova) := 2c8839886ad502be654273c0ac4cddca50432e86
REV(nova) := e232309084397f7d621ccfa810941db3ea9e8ff6
DIR(nova) := src/kernel/nova
PATCHES := $(sort $(wildcard $(REP_DIR)/patches/*.patch))

View File

@ -39,14 +39,14 @@ proc log_core { } {
if {[log_core]} {
if {[have_spec nova]} {
proc kernel_output { } { return "novga serial logmem" }
proc kernel_output { } { return "serial logmem" }
}
} else {
# disable default enabled serial log output via core
proc boot_output { } { return "" }
if {[have_spec nova]} {
proc kernel_output { } { return "novga logmem" }
proc kernel_output { } { return "logmem" }
}
}

View File

@ -30,7 +30,7 @@ if {
if {[have_spec nova]} {
# enable logmem to get kernel logs in memory
proc kernel_output { } { return "novga logmem" }
proc kernel_output { } { return "logmem" }
}

View File

@ -13,7 +13,7 @@ proc log_service { } {
}
if {[have_spec nova]} {
proc kernel_output { } { return "novga logmem" }
proc kernel_output { } { return "logmem" }
}
build {

View File

@ -16,7 +16,7 @@ if { [get_cmd_switch --autopilot] && [have_spec x86_32] } {
}
if {[have_spec nova]} {
proc kernel_output { } { return "novga logmem" }
proc kernel_output { } { return "logmem" }
}
create_boot_directory

View File

@ -31,7 +31,7 @@ proc binary_name_core_a { } { return "core-nova.a" }
proc binary_name_timer { } { return "nova_timer_drv" }
proc kernel_files { } { return hypervisor }
proc kernel_output { } { return "novga serial" }
proc kernel_output { } { return "serial" }
proc boot_output { } { return "serial" }
@ -129,7 +129,7 @@ proc run_boot_dir {binaries} {
if {[apply_microcode]} {
puts $fh " module2 /boot/micro.code micro.code"
}
puts $fh " module2 /boot/hypervisor hypervisor iommu novpid [kernel_output]"
puts $fh " module2 /boot/hypervisor hypervisor iommu [kernel_output]"
puts $fh " module2 /boot/image.elf.gz image.elf"
puts $fh "}"
close $fh
@ -154,7 +154,7 @@ proc run_boot_dir {binaries} {
if {[apply_microcode]} {
puts $fh " load /boot/micro.code micro.code"
}
puts $fh " load /boot/hypervisor iommu novpid [kernel_output]"
puts $fh " load /boot/hypervisor iommu [kernel_output]"
puts $fh " load /boot/image.elf"
close $fh