Open sctb512 opened 5 years ago
I want to execute read_vmcs(GUEST_CR3), but it occurs errors. I want to creat a model for EPT translating. what should i do? Thanks.
open_device(); do_ioctl(dev, KSM_IOCTL_SUBVERT, NULL, 0); do_ioctl(dev, KSM_MY_EPT_START, NULL, 0); do_ioctl(dev, KSM_MY_EPT_HANDLE, NULL, 0); ......
open_device();
do_ioctl(dev, KSM_IOCTL_SUBVERT, NULL, 0);
do_ioctl(dev, KSM_MY_EPT_START, NULL, 0);
do_ioctl(dev, KSM_MY_EPT_HANDLE, NULL, 0);
case KSM_MY_EPT_HANDLE: ...... cr3 = vmcs_read(GUEST_CR3);
case KSM_MY_EPT_HANDLE:
cr3 = vmcs_read(GUEST_CR3);
ksmlinux.ko
ksmlinux.o
read cr3 of guest and translate EPT from gva to hpa.
Type of this issue (please specify)
System information
Issue description
I want to execute read_vmcs(GUEST_CR3), but it occurs errors. I want to creat a model for EPT translating. what should i do? Thanks.
open_device();
do_ioctl(dev, KSM_IOCTL_SUBVERT, NULL, 0);
do_ioctl(dev, KSM_MY_EPT_START, NULL, 0);
do_ioctl(dev, KSM_MY_EPT_HANDLE, NULL, 0);
......case KSM_MY_EPT_HANDLE:
......cr3 = vmcs_read(GUEST_CR3);
For Linux
ksmlinux.ko
andksmlinux.o
Expected Behavior
read cr3 of guest and translate EPT from gva to hpa.