Re: [PATCH 3/3] virtio_balloon: Bugfixes for PAGE_SIZE != 4k

2012-04-12 Thread David Gibson
On Thu, Apr 12, 2012 at 01:14:06PM +0300, Michael S. Tsirkin wrote: > On Thu, Apr 12, 2012 at 03:36:35PM +1000, David Gibson wrote: [snip] > Good catch! > > Unfortunately I find the approach a bit convoluted. > It also looks like when host asks for 5 balloon pages > you interpret this as 0 where 1

Re: [PATCH 4/4] virtio_blk: use disk_name_format() to support mass of disks naming

2012-04-12 Thread Jeff Garzik
On 03/30/2012 11:26 AM, Tejun Heo wrote: If we're gonna move it to block layer, let's add big blinking red comment saying "don't ever use it for any new driver". Big ACK to that... ___ Virtualization mailing list Virtualization@lists.linux-foundation

Re: [PATCH 3/3] virtio_balloon: Bugfixes for PAGE_SIZE != 4k

2012-04-12 Thread Michael S. Tsirkin
On Thu, Apr 12, 2012 at 03:36:35PM +1000, David Gibson wrote: > The virtio_balloon device is specced to always operate on 4k pages. The > virtio_balloon driver has a feeble attempt at reconciling this with a > lerge kernel page size, but it is (a) exactly wrong (it shifts the pfn in > the wrong di

Re: [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

Re: [PATCH 1/3] virtio_balloon: Remove unnecessarily persistent state

2012-04-12 Thread Michael S. Tsirkin
On Thu, Apr 12, 2012 at 03:36:33PM +1000, David Gibson wrote: > The main virtio_balloon state structure contains the fields num_pfns and > array 'pfns'. Although they are stored here persistently, the lifetime of > useful data in there is never more than one function - they're essentially > used a

Re: [PATCH 1/3] virtio_balloon: Remove unnecessarily persistent state

2012-04-12 Thread Michael S. Tsirkin
On Thu, Apr 12, 2012 at 03:36:33PM +1000, David Gibson wrote: > The main virtio_balloon state structure contains the fields num_pfns and > array 'pfns'. Although they are stored here persistently, the lifetime of > useful data in there is never more than one function - they're essentially > used a