On Wed, Apr 17, 2024 at 02:16:57PM +0800,Currently, QEMU checks the capabilities for Hyper-v/Xen via kvm_check_extension(), which is the global version.
Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx> wrote:
That's right. We should update kvm_vm_ioctl_check_extension() and
On 4/4/2024 9:27 AM, Isaku Yamahata wrote:
On Tue, Apr 02, 2024 at 04:52:46PM +0800,So for TDX, kvm doesn't support xen/hyper-v, right?
Chao Gao <chao.gao@xxxxxxxxx> wrote:
No. kvm_emulate_hypercall() handles xen/hyper-v hypercalls,+static int tdx_emulate_vmcall(struct kvm_vcpu *vcpu)do you need to emulate xen/hyper-v hypercalls here?
+{
+ unsigned long nr, a0, a1, a2, a3, ret;
+
__kvm_emulate_hypercall() doesn't.
Then, should KVM_CAP_XEN_HVM and KVM_CAP_HYPERV be filtered out for TDX?
kvm_vcpu_ioctl_enable_cap(). I didn't pay attention to them.