]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/xen: Move KVM_XEN_HVM_CONFIG ioctl to kvm_xen_init_vcpu()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 6 Feb 2025 08:52:52 +0000 (08:52 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 7 Feb 2025 14:19:27 +0000 (14:19 +0000)
commite7fe187d765d587d0daf24bebdb48efa8874fe1a
tree46f6a59677cfa76cd6d0cad985f1adc58bfe06f6
parent131c58469f6fb68c89b38fee6aba8bbb20c7f4bf
i386/xen: Move KVM_XEN_HVM_CONFIG ioctl to kvm_xen_init_vcpu()

At the time kvm_xen_init() is called, hyperv_enabled() doesn't yet work, so
the correct MSR index to use for the hypercall page isn't known.

Rather than setting it to the default and then shifting it later for the
Hyper-V case with a confusing second call to kvm_init_xen(), just do it
once in kvm_xen_init_vcpu().

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
target/i386/kvm/kvm.c
target/i386/kvm/xen-emu.c
target/i386/kvm/xen-emu.h