KVM-VMI / kvm

Fork of KVM with Virtual Machine Introspection patches
Other
33 stars 28 forks source link

kvm: introspection: add KVMI_VM_GET_NEXT_AVAILABLE_GFN #64

Closed rageagainsthepc closed 1 year ago

rageagainsthepc commented 1 year ago

In some cases it is not sufficient to obtain the maximum physical address and add a new gfn behind it. There might be MMIO or other chunks of memory that are excluded in kvm_get_max_gfn allocated behind that address in which case the allocation may fail. This API is guaranteed to return a gfn that is not occupied.