Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the case of virtualization, how do you use PT ? #14

Open
iscaszmh opened this issue Mar 6, 2019 · 2 comments
Open

In the case of virtualization, how do you use PT ? #14

iscaszmh opened this issue Mar 6, 2019 · 2 comments

Comments

@iscaszmh
Copy link

iscaszmh commented Mar 6, 2019

Hi, in the case of virtualization, the intel_pt function cannot be found, whether the virtual machine cannot directly access the PT hardware, how should I do
perf list | grep intel_pt

@moflow
Copy link
Contributor

moflow commented Mar 6, 2019 via email

@iscaszmh
Copy link
Author

iscaszmh commented Mar 6, 2019

Using PT requires access to MSRs that are not exposed to hypervisor guests by default. This requires a change to the VMCS region. For closed source hypervisors this can pose a challenge. If you can use KVM, you can use the patches from kAFL project to allow PT to be exposed. You should be able to use the new ipt.sys that ships with windows 10 under KVM built with those patches (without using the rest of kAFL unless that fits your needs)

On Wed, Mar 6, 2019 at 12:16 AM iscaszmh @.***> wrote: Hi, in the case of virtualization, the intel_pt function cannot be found, whether the virtual machine cannot directly access the PT hardware, how should I do perf list | grep intel_pt — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#14>, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUSW669EVO3R3bjgMj7cRIn5kymZdHGks5vT3lfgaJpZM4bgTFQ .

Thank you very much for your help. I happen to use KVM and qemu, so I have to study kernel-afl right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant