]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: Maintain valid mapping of Xen shared_info page
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 30 Oct 2021 18:53:23 +0000 (19:53 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 20 Nov 2021 10:23:24 +0000 (10:23 +0000)
commitc5f21e17ec51a51a0bca256a6ed454a6e367e9d0
treef294ea333e351617faea602f6056743dfe21b507
parent40f46d430042fc3f1ae0bcdf8434627873b7fc38
KVM: x86/xen: Maintain valid mapping of Xen shared_info page

Use the newly reinstated gfn_to_pfn_cache to maintain a kernel mapping
of the Xen shared_info page so that it can be accessed in atomic context.

Note that we do not participate in dirty tracking for the shared info
page and we do not explicitly mark it dirty every single tim we deliver
an event channel interrupts. We wouldn't want to do that even if we *did*
have a valid vCPU context with which to do so.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Documentation/virt/kvm/api.rst
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/xen.c