common: map_vcpu_info() wants to unshare the underlying page
authorJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 12:26:33 +0000 (13:26 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Oct 2022 12:26:33 +0000 (13:26 +0100)
commit426a8346c01075ec5eba4aadefab03a96b6ece6a
tree2e6162917d5f9ca3dc55b4e18e445e179adf85ff
parentaac108509055e5f5ff293e1fb44614f96a0996c6
common: map_vcpu_info() wants to unshare the underlying page

Not passing P2M_UNSHARE to get_page_from_gfn() means there won't even be
an attempt to unshare the referenced page, without any indication to the
caller (e.g. -EAGAIN). Note that guests have no direct control over
which of their pages are shared (or paged out), and hence they have no
way to make sure all on their own that the subsequent obtaining of a
writable type reference can actually succeed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
master commit: 48980cf24d5cf41fd644600f99c753419505e735
master date: 2022-10-28 11:38:32 +0200
xen/common/domain.c