diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-11-05 10:36:19 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:52:22 -0500 |
commit | 5cf8ca22146fa106f3bb865631ec04f5b499508f (patch) | |
tree | 4a32a552277e4c3a6a103f05d164dfc97dbf2bae /arch/powerpc/kvm/powerpc.c | |
parent | db93f5745d836f81cef0b4101a7c2685eeb55efb (diff) |
KVM: ppc: adjust vcpu types to support 64-bit cores
However, some of these fields could be split into separate per-core structures
in the future.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 237f3ba68d27..7ad150e0fbbf 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -256,14 +256,14 @@ int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu, | |||
256 | static void kvmppc_complete_dcr_load(struct kvm_vcpu *vcpu, | 256 | static void kvmppc_complete_dcr_load(struct kvm_vcpu *vcpu, |
257 | struct kvm_run *run) | 257 | struct kvm_run *run) |
258 | { | 258 | { |
259 | u32 *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; | 259 | ulong *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; |
260 | *gpr = run->dcr.data; | 260 | *gpr = run->dcr.data; |
261 | } | 261 | } |
262 | 262 | ||
263 | static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, | 263 | static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, |
264 | struct kvm_run *run) | 264 | struct kvm_run *run) |
265 | { | 265 | { |
266 | u32 *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; | 266 | ulong *gpr = &vcpu->arch.gpr[vcpu->arch.io_gpr]; |
267 | 267 | ||
268 | if (run->mmio.len > sizeof(*gpr)) { | 268 | if (run->mmio.len > sizeof(*gpr)) { |
269 | printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len); | 269 | printk(KERN_ERR "bad MMIO length: %d\n", run->mmio.len); |