Skip to content

Performance counter virtualization #91

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

Open
kayceesrk opened this issue Mar 12, 2016 · 5 comments
Open

Performance counter virtualization #91

kayceesrk opened this issue Mar 12, 2016 · 5 comments

Comments

@kayceesrk
Copy link

Currently performance counter MSRs are not advertised to the guest. Is this expected to change in the near future?

@kayceesrk kayceesrk changed the title Performance counter virtuvalization Performance counter virtualization Mar 12, 2016
@xez
Copy link
Contributor

xez commented Mar 31, 2016

Do you have a specific use case in mind? Performance counters are perturbed by host activity. Having them only count guest activity is a bit tricky and might require support from Hypervisor.framework. Even with support, the measurements might not end up being useful.

@kayceesrk
Copy link
Author

The use case I have in mind is rr record and replay framework, which depends on certain performance counter features. However, it is unclear to me what subset of features are required for rr for its record and replay.

@sidkshatriya
Copy link

@xez and others:

This is actually quite a cool (and to my mind, important) feature. VMWare supports performance counter virtualization (also called PMU virtualization). Parallels also claims to do the same (though it seems to be broken).

Having this will allow some real powerful programs like mozilla/rr to be run on xhyve

Are there plans to support this now or in the future?

@rickard-von-essen
Copy link
Contributor

@sidkshatriya Just a note about Parallels and the bug you link. The author uses a ~4 y old version of Parallels Desktop for Mac so I wouldn't assume that it the current state of PD PMU virtualization.

@sidkshatriya
Copy link

@rickard-von-essen Very useful observation -- Thanks for noticing that. Maybe you could update the ticket rr-debugger/rr#1818 with the same info?

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

4 participants