Skip to content
Snippets Groups Projects
Commit 8473607b authored by David Woodhouse's avatar David Woodhouse
Browse files

i386/xen: advertise XEN_HVM_CPUID_UPCALL_VECTOR in CPUID


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: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: default avatarPaul Durrant <paul@xen.org>
parent 8ac98aed
No related branches found
No related tags found
No related merge requests found
...@@ -1837,6 +1837,10 @@ int kvm_arch_init_vcpu(CPUState *cs) ...@@ -1837,6 +1837,10 @@ int kvm_arch_init_vcpu(CPUState *cs)
c->eax |= XEN_HVM_CPUID_VCPU_ID_PRESENT; c->eax |= XEN_HVM_CPUID_VCPU_ID_PRESENT;
c->ebx = cs->cpu_index; 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); r = kvm_xen_init_vcpu(cs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment