x86/hvm/viridian: stop open coding updates to APIC registers
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 7 Dec 2018 17:50:08 +0000 (17:50 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Dec 2018 11:32:33 +0000 (11:32 +0000)
commit1fea389864bd278305a07a139f5f362db70df495
tree1af330f18492dadcc619e4195c6da99a0585c439
parent032c2208ece1774b6b176330d144edc697e2ce61
x86/hvm/viridian: stop open coding updates to APIC registers

The code in viridian_synic_wrmsr() duplicates logic in vlapic_reg_write()
to update the ICR, ICR2 and TASKPRI registers. Instead of doing this,
make vlapic_reg_write() non-static and call it.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Rename "offset" to "reg" for consistency with the rest of the vlapic API.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/viridian/synic.c
xen/arch/x86/hvm/vlapic.c
xen/include/asm-x86/hvm/vlapic.h