diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-08-03 14:57:49 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-08-13 15:10:45 -0400 |
commit | 51d59c6b422f3f95940ae4e5b42f165595906aee (patch) | |
tree | dc1afa1f084c78b09af2dc829a5bfda8cfa00a0c /arch/x86/include | |
parent | 64eb0620296f924d5fded755c5ed95fb73649e06 (diff) |
KVM: x86: fix pvclock guest stopped flag reporting
kvm_guest_time_update unconditionally clears hv_clock.flags field,
so the notification never reaches the guest.
Fix it by allowing PVCLOCK_GUEST_STOPPED to passthrough.
Reviewed-by: Eric B Munson <emunson@mgebm.net>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 1309e69b57fa..fc0e752e7564 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -420,6 +420,8 @@ struct kvm_vcpu_arch { | |||
420 | unsigned int hw_tsc_khz; | 420 | unsigned int hw_tsc_khz; |
421 | unsigned int time_offset; | 421 | unsigned int time_offset; |
422 | struct page *time_page; | 422 | struct page *time_page; |
423 | /* set guest stopped flag in pvclock flags field */ | ||
424 | bool pvclock_set_guest_stopped_request; | ||
423 | 425 | ||
424 | struct { | 426 | struct { |
425 | u64 msr_val; | 427 | u64 msr_val; |