]> 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>
Mon, 20 Feb 2023 18:03:49 +0000 (18:03 +0000)
commitc96f887397f641f4d075c6e0849e7841f66cff91
tree117c98c573eaf754bc5526e3a4d767f3e304199d
parent88e50608c3c4ec7eb38dd6ec6f97ce7b6aecd9ca
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>
Reviewed-by: Paul Durrant <paul@xen.org>
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