]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: Constify the read side of vlapic handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Feb 2018 18:10:00 +0000 (18:10 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Feb 2018 18:05:27 +0000 (18:05 +0000)
commit85688075ccc22c12bd0fca2a2c269199938e104c
treefb80b89df6fa117e772b8d71e43279d0e69e308c
parent62e80dff59c779cb56755b419120529e3d7eb17d
x86/hvm: Constify the read side of vlapic handling

This is in preparation to make hvm_x2apic_msr_read() take a const vcpu
pointer.  One modification is to alter vlapic_get_tmcct() to not use current.

This in turn needs an alteration to hvm_get_guest_time_fixed(), which is safe
because the only mutable action it makes is to take the domain plt lock.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vpt.c
xen/include/asm-x86/hvm/hvm.h