我有访客虚拟机的地址。现在,我想将此地址转换为主机地址以进行读取。 KVM API具有KVM_TRANSLATE指令,用于将来宾的虚拟地址地址转换为来宾的物理地址。但是我想在主机端读取访客内存地址。
4.15 KVM_TRANSLATE
Capability: basic
Architectures: x86
Type: vcpu ioctl
Parameters: struct kvm_translation (in/out)
Returns: 0 on success, -1 on error
Translates a virtual address according to the vcpu's current address
translation mode.