x86/pv: Misc improvements to pv_destroy_gdt()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Oct 2017 18:46:40 +0000 (19:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Dec 2017 19:03:27 +0000 (19:03 +0000)
commitb51204319e4839841ba946b14ddbbb9bd8fc50ed
tree162570098eacd4d56d94aa5080935b06d17b9039
parentffc4a3cf4fe6945a4998075e2c4435d1da281909
x86/pv: Misc improvements to pv_destroy_gdt()

Hoist the l1e_from_pfn(zero_pfn, __PAGE_HYPERVISOR_RO) calculation out of the
loop, and switch the code over to using mfn_t.

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