]> xenbits.xensource.com Git - people/jgross/xen.git/commit
x86/pv: Make the PV default WRMSR path match the HVM default
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 Jul 2020 17:33:51 +0000 (18:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jul 2020 09:15:19 +0000 (10:15 +0100)
commit0562cbc14cf02b8188b9f1f37f39a4886776ce7c
treec5d5d594c5b60982415c51fbdbd96e771ec3757e
parentb2a64292b0bfa317886b3432d1a5b2a4193a48d6
x86/pv: Make the PV default WRMSR path match the HVM default

The current HVM default for writes to unknown MSRs is to inject #GP if the MSR
is unreadable, and discard writes otherwise. While this behaviour isn't great,
the PV default is even worse, because it swallows writes even to non-readable
MSRs.  i.e. A PV guest doesn't even get a #GP fault for a write to a totally
bogus index.

Update PV to make it consistent with HVM, which will simplify the task of
making other improvements to the default MSR behaviour.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/emul-priv-op.c