[Android-virt] [PATCH] Fix linaro-kvm compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Mar 2012 08:19:27 +0000, Peter Maydell <peter.maydell at linaro.org> wrote:
> On 1 March 2012 01:32, Rusty Russell <rusty at rustcorp.com.au> wrote:
> > I realise this header is a local commit, but it needs this to compile
> > since commit 1529ae1bc61a15e9a243dcbad70c95dfcdd1f0c5 (KVM: Update
> > headers (except HIOR mess)).
> >
> > Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
> >
> > diff --git a/linux-headers/asm-arm/kvm.h b/linux-headers/asm-arm/kvm.h
> > index ff88ca0..260c000 100644
> > --- a/linux-headers/asm-arm/kvm.h
> > +++ b/linux-headers/asm-arm/kvm.h
> > @@ -72,4 +72,6 @@ struct kvm_guest_debug_arch {
> > ?struct kvm_debug_exit_arch {
> > ?};
> >
> > +struct kvm_sync_regs {
> > +};
> > ?#endif /* __ARM_KVM_H__ */
> 
> Ideally I'd like this as a kernel header commit that we can
> import, but if that's really not going to happen soon I can
> commit the local fix to qemu.

This one too!  This one causes boot fail:

# qemu-system-arm -enable-kvm -M vexpress-a15 -drive file=arm-wheezy.img,if=sd,cache=writeback -serial stdio -append 'root=/dev/mmcblk0 rw console=ttyAMA0 rootwait' -kernel /boot/uImage-a15-no-lpae 
VNC server running on `127.0.0.1:5900'
kvm: Inst. abort on I/O address 00000000 (0x0)
kvm: Error in handle_exit
error: kvm run failed Bad address
Aborted
# 

diff --git a/linux-headers/asm-arm/kvm.h b/linux-headers/asm-arm/kvm.h
index ff88ca0..8caa83b 100644
--- a/linux-headers/asm-arm/kvm.h
+++ b/linux-headers/asm-arm/kvm.h
@@ -55,6 +59,7 @@ struct kvm_regs {
 		__u32 c1_sys;
 		__u32 c2_base0;
 		__u32 c2_base1;
+		__u32 c2_control;
 		__u32 c3_dacr;
 	} cp15;
 
-- 
  Please can you help my fiance Alex? http://baldalex.org



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux