locking.txt 547 B

1234567891011121314151617181920212223242526
  1. KVM Lock Overview
  2. =================
  3. 1. Acquisition Orders
  4. ---------------------
  5. (to be written)
  6. 2. Reference
  7. ------------
  8. Name: kvm_lock
  9. Type: raw_spinlock
  10. Arch: any
  11. Protects: - vm_list
  12. - hardware virtualization enable/disable
  13. Comment: 'raw' because hardware enabling/disabling must be atomic /wrt
  14. migration.
  15. Name: kvm_arch::tsc_write_lock
  16. Type: raw_spinlock
  17. Arch: x86
  18. Protects: - kvm_arch::{last_tsc_write,last_tsc_nsec,last_tsc_offset}
  19. - tsc offset in vmcb
  20. Comment: 'raw' because updating the tsc offsets must not be preempted.