From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hollis Blanchard Subject: RE: Virtio_pci in kernel ignore endian of PCI I/O space? Date: Fri, 05 Sep 2008 10:30:50 -0500 Message-ID: <1220628650.31152.4.camel@localhost.localdomain> References: <1220364956.26357.33.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kvm To: Liu Yu-B13201 Return-path: In-Reply-To: Sender: kvm-ppc-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: kvm.vger.kernel.org On Thu, 2008-09-04 at 13:27 +0800, Liu Yu-B13201 wrote: > > > > > Since E500 is big endian, this bring the misunderstanding > > between qemu > > > and guest. > > > > What are you using for PCI emulation in qemu? I don't think it should > > matter in this case, since the kernel is doing 1-byte reads > > in vp_get(), > > but endianness gets very convoluted wherever qemu is involved. :( > > > > Did you see Anthony's reply? > It's weird that 440 can still work fine. OK, I've found my problem. My host kernel is current, but my *guest* kernel is old (it was still byte-swapping). Also, the reason the S390 guys didn't see a problem is that they aren't yet using qemu, and their virtio userspace implementation doesn't swap. Yu, would you send a patch? -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html