mem_access: Fix npfec.kind propagation
authorGeorge Dunlap <george.dunlap@citrix.com>
Thu, 27 Sep 2018 11:25:36 +0000 (12:25 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 17 Oct 2018 13:46:45 +0000 (14:46 +0100)
commitf736a3b7285384529de932055856be0703f8ac20
tree8ac1a3c3e2e889fe0f5c1792bb47a74d063c2930
parent761de0b8920c35993a0b6559ceb416155ac5407a
mem_access: Fix npfec.kind propagation

The name of the "with_gla" flag is confusing; it has nothing to do
with the existence or lack thereof of a faulting GLA, but rather where
the fault originated.  The npfec.kind value is always valid, and
should thus be propagated, regardless of whether gla_valid is set or
not.

In particular, gla_valid will never be set on AMD systems; but
npfec.kind will still be valid and should still be propagated.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/mm/mem_access.c