Lines Matching +full:low +full:- +full:vt
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
55 #define STEALCLOCK_NOT_AVAILABLE (-1)
101 /* only for little-endian */
116 return eax != (uint32_t)-1 && ebx == VMWARE_HYPERVISOR_MAGIC; in __vmware_platform()
136 early_param("no-vmw-sched-clock", setup_vmw_sched_clock);
143 early_param("no-steal-acc", parse_no_stealacc);
151 ns -= vmware_cyc2ns.cyc2ns_offset; in vmware_sched_clock()
160 clocks_calc_mult_shift(&d->cyc2ns_mul, &d->cyc2ns_shift, in vmware_cyc2ns_setup()
162 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
163 d->cyc2ns_shift); in vmware_cyc2ns_setup()
165 pr_info("using clock offset of %llu ns\n", d->cyc2ns_offset); in vmware_cyc2ns_setup()
207 * vmware_steal_clock() - read the per-cpu steal clock
210 * The function reads the steal clock if we are on a 64-bit system, otherwise
223 clock = READ_ONCE(steal->clock); in vmware_steal_clock()
225 uint32_t initial_high, low, high; in vmware_steal_clock() local
228 initial_high = READ_ONCE(steal->clock_high); in vmware_steal_clock()
231 low = READ_ONCE(steal->clock_low); in vmware_steal_clock()
232 /* Keep low reading in between */ in vmware_steal_clock()
234 high = READ_ONCE(steal->clock_high); in vmware_steal_clock()
237 clock = ((uint64_t)high << 32) | low; in vmware_steal_clock()
257 pr_info("vmware-stealtime: cpu %d, pa %llx\n", in vmware_register_steal_time()
471 /* Checks if hypervisor supports x2apic without VT-D interrupt remapping. */
485 ghcb_set_rip(ghcb, regs->ip); in vmware_sev_es_hcall_prepare()
486 ghcb_set_rbx(ghcb, regs->bx); in vmware_sev_es_hcall_prepare()
487 ghcb_set_rcx(ghcb, regs->cx); in vmware_sev_es_hcall_prepare()
488 ghcb_set_rdx(ghcb, regs->dx); in vmware_sev_es_hcall_prepare()
489 ghcb_set_rsi(ghcb, regs->si); in vmware_sev_es_hcall_prepare()
490 ghcb_set_rdi(ghcb, regs->di); in vmware_sev_es_hcall_prepare()
491 ghcb_set_rbp(ghcb, regs->bp); in vmware_sev_es_hcall_prepare()
504 regs->bx = ghcb->save.rbx; in vmware_sev_es_hcall_finish()
505 regs->cx = ghcb->save.rcx; in vmware_sev_es_hcall_finish()
506 regs->dx = ghcb->save.rdx; in vmware_sev_es_hcall_finish()
507 regs->si = ghcb->save.rsi; in vmware_sev_es_hcall_finish()
508 regs->di = ghcb->save.rdi; in vmware_sev_es_hcall_finish()
509 regs->bp = ghcb->save.rbp; in vmware_sev_es_hcall_finish()