Re: [PATCH v13 12/21] KVM: x86/xen: allow shared_info to be mapped by fixed HVA

2024-02-20 Thread Paul Durrant
On 19/02/2024 21:53, Sean Christopherson wrote: On Thu, Feb 15, 2024, Paul Durrant wrote: @@ -715,13 +731,23 @@ int kvm_xen_hvm_get_attr(struct kvm *kvm, struct kvm_xen_hvm_attr *data) break; case KVM_XEN_ATTR_TYPE_SHARED_INFO: - if (kvm->arch.xen.shinfo_cac

Re: [PATCH v13 12/21] KVM: x86/xen: allow shared_info to be mapped by fixed HVA

2024-02-19 Thread Sean Christopherson
On Thu, Feb 15, 2024, Paul Durrant wrote: > @@ -715,13 +731,23 @@ int kvm_xen_hvm_get_attr(struct kvm *kvm, struct > kvm_xen_hvm_attr *data) > break; > > case KVM_XEN_ATTR_TYPE_SHARED_INFO: > - if (kvm->arch.xen.shinfo_cache.active) > + if (kvm->arch.x

[PATCH v13 12/21] KVM: x86/xen: allow shared_info to be mapped by fixed HVA

2024-02-15 Thread Paul Durrant
From: Paul Durrant The shared_info page is not guest memory as such. It is a dedicated page allocated by the VMM and overlaid onto guest memory in a GFN chosen by the guest and specified in the XENMEM_add_to_physmap hypercall. The guest may even request that shared_info be moved from one GFN to a