Thread (22 messages) 22 messages, 4 authors, 2020-05-29

Re: [PATCH v11 4/7] x86/kvm/hyper-v: Add support for synthetic debugger capability

From: Paolo Bonzini <pbonzini@redhat.com>
Date: 2020-05-29 10:47:07
Also in: kvm

On 24/04/20 13:37, Jon Doron wrote:
+static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host)
+{
+	struct kvm_hv_syndbg *syndbg = vcpu_to_hv_syndbg(vcpu);
+
+	if (!syndbg->active && !host)
+		return 1;
+
One small thing: is the ENABLE_CAP and active field needed?  Can you
just check if the guest has the syndbg CPUID bits set?

Thanks,

Paolo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help