diff options
author | Max Bruning <max@joyent.com> | 2011-05-23 22:40:52 -0700 |
---|---|---|
committer | Max Bruning <max@joyent.com> | 2011-05-23 22:41:05 -0700 |
commit | 3d4af3113cb5db6f335cc15d4dd0efc1cde17227 (patch) | |
tree | 4e17affface9c60d756ec9cf9a3a5facfa0db329 /kvm.c | |
parent | ff9f076d46c4b1a589e797c5f2ae869dba6d16f2 (diff) | |
download | illumos-kvm-3d4af3113cb5db6f335cc15d4dd0efc1cde17227.tar.gz |
HVM-228 vmx_vcpu_load should not call hat_getpfnum
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4889,8 +4889,7 @@ void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); - uint64_t phys_addr = (hat_getpfnum(kas.a_hat, (char *)vmx->vmcs) << - PAGESHIFT) | ((uint64_t)(vmx->vmcs) & 0xfff); + uint64_t phys_addr = vmx->vmcs_pa; uint64_t tsc_this, delta, new_offset; if (vcpu->cpu != cpu) { |