<div dir="ltr">Hello everyone on the vbox-dev mailing list,<div><br></div><div><b>Introduction</b></div><div>I am considering contributing to VBox and add support for CPU performance counters. You might have encountered the lack of such support while using Perf, which will dispay <i><not supported></i> in place of, for example, the branch-misses that were requested. It is important to note that this is my first time contributing to VBox and I currently lack detailed knowledge of its' inner workings.</div><div><br></div><div><b>The Problem</b></div><div>My current understanding of this problem is that VBox does not expose the necessary performance counter registers. I have been looking through the documentation for the CPUM component but I am having trouble wrapping my head around how VBox accesses registers from the host's CPU and exposes said registers (specifically the MSRs) to the guest, so I ask following questions:</div><div><ol><li>How should I access (machine-specific) registers from the host's CPU using VBox's components.</li><li>How should I make these registers available to the guest in line with VBox's current architecture?</li></ol></div><div><br></div><div>I thank you in advance and remain</div><div>with kind regards,</div><div>David Golger</div></div>