qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 20/51] i386/xen: handle VCPUOP_register_vcpu_info


From: Paul Durrant
Subject: Re: [PATCH v6 20/51] i386/xen: handle VCPUOP_register_vcpu_info
Date: Mon, 16 Jan 2023 17:46:15 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 10/01/2023 12:20, David Woodhouse wrote:
From: Joao Martins <joao.m.martins@oracle.com>

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            |   2 +
  target/i386/kvm/kvm.c        |  17 ++++
  target/i386/kvm/trace-events |   1 +
  target/i386/kvm/xen-emu.c    | 152 ++++++++++++++++++++++++++++++++++-
  target/i386/kvm/xen-emu.h    |   2 +
  target/i386/machine.c        |  19 +++++
  6 files changed, 190 insertions(+), 3 deletions(-)


Reviewed-by: Paul Durrant <paul@xen.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]