x86/pv: Rename invalidate_shadow_ldt() to pv_destroy_ldt()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Oct 2017 10:18:37 +0000 (11:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Jan 2018 18:16:14 +0000 (18:16 +0000)
commit634afe43ac703fb04d398f1b90839c7503fabcb4
tree0ed9c62c787e7efb164791bfc2c4362b82c88ff5
parentf9fc2e584ddf3cf3b0b2a7b08dbc3ac3a70ddab3
x86/pv: Rename invalidate_shadow_ldt() to pv_destroy_ldt()

and move it into pv/descriptor-tables.c beside its GDT counterpart.  Reduce
the !in_irq() check from a BUG_ON() to ASSERT().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/arch/x86/pv/descriptor-tables.c
xen/include/asm-x86/pv/mm.h