x86/vHPET: use rwlock instead of simple one
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Aug 2014 13:00:15 +0000 (15:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Aug 2014 13:00:15 +0000 (15:00 +0200)
commitded2100990d1688b96c2edc7221887c56c1a8e04
tree9b035e9dac5d0bafbf08a755c820de3123eef8e5
parentb074b99c34f9ab5bf234b4778a417b5b55690060
x86/vHPET: use rwlock instead of simple one

This namely benefits guests heavily reading the main counter, but not
touching the HPET much otherwise. Note that due to the way
hpet_get_comparator() works hpet_read() has to special cases reads from
the comparator registers and use a write lock there instead of the read
one used for all other registers.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hpet.c
xen/arch/x86/hvm/vpt.c
xen/include/asm-x86/hvm/vpt.h