summaryrefslogtreecommitdiff
path: root/kvm.c
diff options
context:
space:
mode:
authorMax Bruning <max@joyent.com>2011-05-23 22:40:52 -0700
committerMax Bruning <max@joyent.com>2011-05-23 22:41:05 -0700
commit3d4af3113cb5db6f335cc15d4dd0efc1cde17227 (patch)
tree4e17affface9c60d756ec9cf9a3a5facfa0db329 /kvm.c
parentff9f076d46c4b1a589e797c5f2ae869dba6d16f2 (diff)
downloadillumos-kvm-3d4af3113cb5db6f335cc15d4dd0efc1cde17227.tar.gz
HVM-228 vmx_vcpu_load should not call hat_getpfnum
Diffstat (limited to 'kvm.c')
-rw-r--r--kvm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvm.c b/kvm.c
index 2547cc2..a43daa7 100644
--- a/kvm.c
+++ b/kvm.c
@@ -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) {