StrikerX3 / virt86

x86 virtualization abstraction framework
MIT License
152 stars 17 forks source link

Implement dirty page tracking support for KVM #2

Closed StrikerX3 closed 5 years ago

StrikerX3 commented 5 years ago

KVM supports dirty page tracking, but the feature is currently unimplemented in the adapter. According to the API, one can use the KVM_GET_DIRTY_LOG IOCTL to get the dirty bitmap of a specified range and KVM_CLEAR_DIRTY_LOG to clear it. Some features control how these IOCTLs work. virt86 currently does not specify if the dirty bitmap is to be cleared when read, but WHPX (the only other platform to support this feature so far) clears it automatically.

StrikerX3 commented 5 years ago

Implemented on 834210c.