发明名称 Virtualizing performance counters
摘要 Embodiments of apparatuses, methods, and systems for virtualizing performance counters are disclosed. In one embodiment, an apparatus includes a counter, a counter enable storage location, counter enable logic, and virtual machine control logic. The counter enable storage location is to store a counter enable indicator. The counter enable logic is to enable the counter based on the counter enable indicator. The virtual machine control logic is to transfer control of the apparatus to a guest. The virtual machine control logic includes guest state load logic to cause a guest value from a virtual machine control structure to be loaded into the counter enable storage location in connection with a transfer of control of the apparatus to the guest.
申请公布号 US9244712(B2) 申请公布日期 2016.01.26
申请号 US201314060947 申请日期 2013.10.23
申请人 Intel Corporation 发明人 Cola-Robles Erik C.;Neiger Gilbert;Bennett Steven M.;Anderson Andrew V.
分类号 G06F9/455;G06F9/46;G06F11/34 主分类号 G06F9/455
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 1. An apparatus comprising: a memory to store a plurality of counters and a counter enable storage location to store: one or more counter enable bits or fields, each of which corresponds to, and is to control, one or more of the plurality of counters; andone or more additional enable indicators, each of which corresponds to, and is to control, a respective subset of the one or more counter enable bits or fields; and a processor to communicate with the memory to: enable a counter among the plurality of counters responsive to: a counter enable bit or field, among a first subset of the one or more counter enable bits or fields and corresponding to the counter, being configured to a respective enable value, andan additional enable indicator, among the one or more additional enable indicators and corresponding to the first subset, being configured to a respective enable value,disable the counter responsive to a configuration to a disable value of at least one of the counter enable bit or field or the additional enable indicator,provide virtualization for the plurality of counters,cause a guest value or a host value to be loaded into the counter enable storage location in connection with a transfer of control between a host and a guest, andtransfer control of the apparatus from the host to the guest if the guest value is loaded and from the guest to the host if the host value is loaded.
地址 Santa Clara CA US