summaryrefslogtreecommitdiffstats
path: root/target/i386/cpu.c
diff options
context:
space:
mode:
authorSunil Muthuswamy2020-10-28 03:23:19 +0100
committerPaolo Bonzini2020-12-10 18:15:01 +0100
commitfaf20793b5af15ed4bea9c40dd8e6ae46d51be23 (patch)
tree323f0f9bebaa45bc847dcc93bcbe604323e2a2eb /target/i386/cpu.c
parenttarget/i386: seg_helper: Correct segment selector nullification in the RET/IR... (diff)
downloadqemu-faf20793b5af15ed4bea9c40dd8e6ae46d51be23.tar.gz
qemu-faf20793b5af15ed4bea9c40dd8e6ae46d51be23.tar.xz
qemu-faf20793b5af15ed4bea9c40dd8e6ae46d51be23.zip
WHPX: support for the kernel-irqchip on/off
This patch adds support the kernel-irqchip option for WHPX with on or off value. 'split' value is not supported for the option. The option only works for the latest version of Windows (ones that are coming out on Insiders). The change maintains backward compatibility on older version of Windows where this option is not supported. Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com> Message-Id: <SN4PR2101MB0880B13258DA9251F8459F4DC0170@SN4PR2101MB0880.namprd21.prod.outlook.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/cpu.c')
-rw-r--r--target/i386/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index b90ed05897..af48e3f79e 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -30,6 +30,7 @@
#include "sysemu/hvf.h"
#include "sysemu/cpus.h"
#include "sysemu/xen.h"
+#include "sysemu/whpx.h"
#include "kvm_i386.h"
#include "sev_i386.h"
@@ -6148,6 +6149,8 @@ APICCommonClass *apic_get_class(void)
apic_type = "kvm-apic";
} else if (xen_enabled()) {
apic_type = "xen-apic";
+ } else if (whpx_apic_in_platform()) {
+ apic_type = "whpx-apic";
}
return APIC_COMMON_CLASS(object_class_by_name(apic_type));