]> xenbits.xensource.com Git - xen.git/commit
x86/dom0: fix restoring %cr3 and the mapcache override on PV build error
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 8 Aug 2024 11:45:28 +0000 (13:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Aug 2024 11:45:28 +0000 (13:45 +0200)
commitadf1939b51a0a2fa596f7acca0989bfe56cab307
tree0a8f2a9f7031e95a8172cb5845971faeaefe3666
parentd2ecc1f231b90d4e54394e25a9aef9be42c0d196
x86/dom0: fix restoring %cr3 and the mapcache override on PV build error

One of the error paths in the PV dom0 builder section that runs on the guest
page-tables wasn't restoring the Xen value of %cr3, neither removing the
mapcache override.

Fixes: 079ff2d32c3d ('libelf-loader: introduce elf_load_image')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 1fc3f77113dd43b14fa7ef5936dcdba120c0b63f
master date: 2024-07-31 12:41:02 +0200
xen/arch/x86/pv/dom0_build.c