qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH 14/21] i386/xen: implement HYPERVISOR_vcpu_op


From: Philippe Mathieu-Daudé
Subject: Re: [RFC PATCH 14/21] i386/xen: implement HYPERVISOR_vcpu_op
Date: Mon, 5 Dec 2022 23:18:48 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 5/12/22 18:31, David Woodhouse wrote:
From: Joao Martins <joao.m.martins@oracle.com>

This is simply when guest tries to register a vcpu_info
and since vcpu_info placement is optional in the minimum ABI
therefore we can just fail with -ENOSYS

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
  target/i386/xen.c | 19 +++++++++++++++++++
  1 file changed, 19 insertions(+)

+static int kvm_xen_hcall_vcpu_op(struct kvm_xen_exit *exit,
+                                 int cmd, uint64_t arg)
+{
+    switch (cmd) {
+    case VCPUOP_register_vcpu_info: {
+            /* no vcpu info placement for now */
+            exit->u.hcall.result = -ENOSYS;
+            return 0;
+        }
+    }

Can we log some trace-event or GUEST_ERROR?

+    exit->u.hcall.result = -ENOSYS;
+    return HCALL_ERR;
+}



reply via email to

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