Skip to content
Commit 18b99e4d authored by Paul Durrant's avatar Paul Durrant Committed by Sean Christopherson
Browse files

KVM: x86/xen: re-initialize shared_info if guest (32/64-bit) mode is set



If the shared_info PFN cache has already been initialized then the content
of the shared_info page needs to be re-initialized whenever the guest
mode is (re)set.
Setting the guest mode is either done explicitly by the VMM via the
KVM_XEN_ATTR_TYPE_LONG_MODE attribute, or implicitly when the guest writes
the MSR to set up the hypercall page.

Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
Reviewed-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Link: https://lore.kernel.org/r/20240215152916.1158-12-paul@xen.org


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent c01c55a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment