[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/12] i386/xen: advertise XEN_HVM_CPUID_UPCALL_VECTOR in CPUID
From: |
David Woodhouse |
Subject: |
[PATCH 04/12] i386/xen: advertise XEN_HVM_CPUID_UPCALL_VECTOR in CPUID |
Date: |
Mon, 16 Oct 2023 16:19:01 +0100 |
From: David Woodhouse <dwmw@amazon.co.uk>
This will allow Linux guests (since v6.0) to use the per-vCPU upcall
vector delivered as MSI through the local APIC.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
target/i386/kvm/kvm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index f6c7f7e268..8bdbdcdffe 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -1887,6 +1887,10 @@ int kvm_arch_init_vcpu(CPUState *cs)
c->eax |= XEN_HVM_CPUID_VCPU_ID_PRESENT;
c->ebx = cs->cpu_index;
}
+
+ if (cs->kvm_state->xen_version >= XEN_VERSION(4, 17)) {
+ c->eax |= XEN_HVM_CPUID_UPCALL_VECTOR;
+ }
}
r = kvm_xen_init_vcpu(cs);
--
2.40.1
- Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices, (continued)
Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices, Kevin Wolf, 2023/10/18
Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices, David Woodhouse, 2023/10/18
[PATCH 08/12] hw/xen: do not repeatedly try to create a failing backend device, David Woodhouse, 2023/10/16
[PATCH 04/12] i386/xen: advertise XEN_HVM_CPUID_UPCALL_VECTOR in CPUID,
David Woodhouse <=
[PATCH 07/12] hw/xen: update Xen console to XenDevice model, David Woodhouse, 2023/10/16
[PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, David Woodhouse, 2023/10/16
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, Paul Durrant, 2023/10/24
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, David Woodhouse, 2023/10/24
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, Paul Durrant, 2023/10/24
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, David Woodhouse, 2023/10/24
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, Paul Durrant, 2023/10/24
- Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode, David Woodhouse, 2023/10/24