]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/xen: handle VCPUOP_register_vcpu_info
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 29 Jun 2018 14:54:50 +0000 (10:54 -0400)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 23 Dec 2022 14:29:26 +0000 (14:29 +0000)
commit8e8bf862ead5883c59eb795f52da41f2d4fd944b
tree25db2806e8bca0a5d7bc07859d474b631ac8673a
parentb5c76ad3c163cd4e2f8da0dcd3ffa284672b888b
i386/xen: handle VCPUOP_register_vcpu_info

Handle the hypercall to set a per vcpu info, and also wire up the default
vcpu_info in the shared_info page for the first 32 vCPUs.

To avoid deadlock within KVM a vCPU thread must set its *own* vcpu_info
rather than it being set from the context in which the hypercall is
invoked.

Add the vcpu_info (and default) GPA to the vmstate_x86_cpu for migration,
and restore it in kvm_arch_put_registers() appropriately.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/kvm/trace-events
target/i386/kvm/xen-emu.c
target/i386/kvm/xen-emu.h
target/i386/machine.c