Re: [Qemu-devel] [PATCH 2/3] virtio_balloon: Fix endian bug

2012-04-12 Thread Michael S. Tsirkin
On Thu, Apr 12, 2012 at 03:36:34PM +1000, David Gibson wrote: > Although virtio config space fields are usually in guest-native endian, > the spec for the virtio balloon device explicitly states that both fields > in its config space are little-endian. > > However, the current virtio_balloon drive

[Qemu-devel] [PATCH 2/3] virtio_balloon: Fix endian bug

2012-04-11 Thread David Gibson
Although virtio config space fields are usually in guest-native endian, the spec for the virtio balloon device explicitly states that both fields in its config space are little-endian. However, the current virtio_balloon driver does not have a suitable endian swap for the 'num_pages' field, althou