hyperv_ref_tsc
static struct hyperv_ref_tsc hyperv_ref_tsc;
struct hyperv_reftsc *tsc_ref = hyperv_ref_tsc.tsc_ref;
hyperv_ref_tsc.tsc_ref = (void *)uvm_km_alloc(kernel_map,
if (hyperv_ref_tsc.tsc_ref == NULL) {
if (!pmap_extract(pmap_kernel(), (vaddr_t)hyperv_ref_tsc.tsc_ref,
&hyperv_ref_tsc.tsc_paddr)) {
uvm_km_free(kernel_map, (vaddr_t)hyperv_ref_tsc.tsc_ref,
hyperv_ref_tsc.tsc_ref = NULL;
(atop(hyperv_ref_tsc.tsc_paddr) << MSR_HV_REFTSC_PGSHIFT);