From 32ecc48bf9fe9bb0c29894d3745bcfa9e04c14d4 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Fri, 6 Sep 2024 13:04:39 +0200 Subject: sys/linux/dev_kvm.txt: declare KVM_CLEAR_DIRTY_LOG --- sys/linux/dev_kvm.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys/linux/dev_kvm.txt') diff --git a/sys/linux/dev_kvm.txt b/sys/linux/dev_kvm.txt index 81fbda5f3..29217685b 100644 --- a/sys/linux/dev_kvm.txt +++ b/sys/linux/dev_kvm.txt @@ -31,6 +31,7 @@ ioctl$KVM_GET_API_VERSION(fd fd_kvm, cmd const[KVM_GET_API_VERSION], type const[ ioctl$KVM_CREATE_VCPU(fd fd_kvmvm, cmd const[KVM_CREATE_VCPU], id intptr[0:2]) fd_kvmcpu ioctl$KVM_CHECK_EXTENSION_VM(fd fd_kvmvm, cmd const[KVM_CHECK_EXTENSION], arg intptr) ioctl$KVM_GET_DIRTY_LOG(fd fd_kvmvm, cmd const[KVM_GET_DIRTY_LOG], arg ptr[in, kvm_dirty_log]) +ioctl$KVM_CLEAR_DIRTY_LOG(fd fd_kvmvm, cmd const[KVM_CLEAR_DIRTY_LOG], arg ptr[in, kvm_clear_dirty_log]) ioctl$KVM_CREATE_IRQCHIP(fd fd_kvmvm, cmd const[KVM_CREATE_IRQCHIP]) ioctl$KVM_IRQ_LINE(fd fd_kvmvm, cmd const[KVM_IRQ_LINE], arg ptr[in, kvm_irq_level]) ioctl$KVM_IRQ_LINE_STATUS(fd fd_kvmvm, cmd const[KVM_IRQ_LINE_STATUS], arg ptr[in, kvm_irq_level]) @@ -870,6 +871,16 @@ kvm_dirty_log { bitmap vma64 } +# num_pages and first_page must be multiples of 64, +# see https://docs.kernel.org/virt/kvm/api.html#kvm-clear-dirty-log-vm-ioctl +kvm_clear_dirty_log { + slot flags[kvm_mem_slots, int32] + num_pages int32[0:1024, 64] + first_page int32[0:1024, 64] +# Allocate 1024 bits regardless of num_pages. + bitmap ptr[in, array[int64, 128]] +} + kvm_msr_list { n len[indices, int32] indices array[const[0, int32]] -- cgit mrf-deployment