Home
last modified time | relevance | path

Searched refs:hyperv_ref_tsc (Results 1 – 1 of 1) sorted by relevance

/netbsd/src/sys/arch/x86/x86/
Dhyperv.c177 struct hyperv_ref_tsc { struct
182 static struct hyperv_ref_tsc hyperv_ref_tsc; argument
205 struct hyperv_reftsc *tsc_ref = hyperv_ref_tsc.tsc_ref; in hyperv_tc64_tsc()
249 hyperv_ref_tsc.tsc_ref = (void *)uvm_km_alloc(kernel_map, in hyperv_tsc_tcinit()
251 if (hyperv_ref_tsc.tsc_ref == NULL) { in hyperv_tsc_tcinit()
256 if (!pmap_extract(pmap_kernel(), (vaddr_t)hyperv_ref_tsc.tsc_ref, in hyperv_tsc_tcinit()
257 &hyperv_ref_tsc.tsc_paddr)) { in hyperv_tsc_tcinit()
259 uvm_km_free(kernel_map, (vaddr_t)hyperv_ref_tsc.tsc_ref, in hyperv_tsc_tcinit()
261 hyperv_ref_tsc.tsc_ref = NULL; in hyperv_tsc_tcinit()
267 (atop(hyperv_ref_tsc.tsc_paddr) << MSR_HV_REFTSC_PGSHIFT); in hyperv_tsc_tcinit()