diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-02-04 04:49:11 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-03-17 12:08:30 -0400 |
commit | 038f8c110eace38d7598e271835ae96ad04a3a26 (patch) | |
tree | 0b95a2c07fb2331110f4741d9d54ebfcf42283a8 /arch/x86/include/asm/kvm_host.h | |
parent | 7049467b5383432e178cc4124e53aebd83638916 (diff) |
KVM: x86: Convert tsc_write_lock to raw_spinlock
Code under this lock requires non-preemptibility. Ensure this also over
-rt by converting it to raw spinlock.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index a58aebef5188..37bd730ff852 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -448,7 +448,7 @@ struct kvm_arch { | |||
448 | 448 | ||
449 | unsigned long irq_sources_bitmap; | 449 | unsigned long irq_sources_bitmap; |
450 | s64 kvmclock_offset; | 450 | s64 kvmclock_offset; |
451 | spinlock_t tsc_write_lock; | 451 | raw_spinlock_t tsc_write_lock; |
452 | u64 last_tsc_nsec; | 452 | u64 last_tsc_nsec; |
453 | u64 last_tsc_offset; | 453 | u64 last_tsc_offset; |
454 | u64 last_tsc_write; | 454 | u64 last_tsc_write; |