All of lore.kernel.org
 help / color / mirror / Atom feed
  • * Re: [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size"
           [not found] <fa3de103a4e7d70354e0.1226360229@localhost.localdomain>
    @ 2008-11-12 12:33   ` Rusty Russell
      2008-11-12 12:33   ` Rusty Russell
      1 sibling, 0 replies; 16+ messages in thread
    From: Rusty Russell @ 2008-11-12 12:21 UTC (permalink / raw)
      To: Hollis Blanchard; +Cc: aliguori, markmc, xiantao.zhang, kvm, kvm-ppc
    
    On Tuesday 11 November 2008 10:07:09 Hollis Blanchard wrote:
    > Both sides of the virtio interface must agree about how big a pfn really
    > is. This is particularly an issue on architectures where the page size is
    > configurable (e.g. PowerPC, IA64) -- the interface must be independent of
    > PAGE_SHIFT.
    >
    > Currently there are three distinct problems:
    > * The shift count used when passing the physical address of the ring to a
    >   PCI-based back end.
    > * The ring layout itself is padded to span at least two "pages".
    > * The balloon driver operates in units of "pages".
    
    Hi Hollis,
    
       The more I thought about this, the more I think we're not solving this
    as neatly as we could.  The trigger was noting that we're breaking the
    userspace API (vring_size and vring_init are exposed to userspace): I
    know that qemu cut & pastes, but that's no excuse.
    
       So instead, I've introduced separate constants for each use.  Yes,
    all these constants are 12/4096.  But just to be contrary, at the end
    is a patch to change lguest to 128.  And there's no reason this
    couldn't change in future using some guest detection scheme.
    
    Patch stream to follow...
    Rusty.
    
    ^ permalink raw reply	[flat|nested] 16+ messages in thread

  • end of thread, other threads:[~2008-11-14  1:39 UTC | newest]
    
    Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <fa3de103a4e7d70354e0.1226360229@localhost.localdomain>
         [not found] ` <200811112347.27844.rusty@rustcorp.com.au>
    2008-11-11 17:18   ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of Hollis Blanchard
    2008-11-11 17:18     ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size" Hollis Blanchard
    2008-11-11 17:21     ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page Avi Kivity
    2008-11-11 17:21       ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size" Avi Kivity
    2008-11-12 12:21 ` Rusty Russell
    2008-11-12 12:33   ` Rusty Russell
         [not found]   ` <200811122251.14159.rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
    2008-11-12 16:16     ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of Hollis Blanchard
    2008-11-12 16:16       ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size" Hollis Blanchard
    2008-11-12 22:14       ` Rusty Russell
    2008-11-12 22:26         ` Rusty Russell
    2008-11-13 21:48         ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of Hollis Blanchard
    2008-11-13 21:48           ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size" Hollis Blanchard
         [not found]           ` <1226612913.5339.42.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
    2008-11-14  1:27             ` Rusty Russell
    2008-11-14  1:39               ` Rusty Russell
         [not found]         ` <200811130844.57749.rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
    2008-11-13 21:49           ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of Hollis Blanchard
    2008-11-13 21:49             ` [PATCH] [v2] linux: virtio: Standardize virtio's concept of "page size" Hollis Blanchard
    

    This is an external index of several public inboxes,
    see mirroring instructions on how to clone and mirror
    all data and code used by this external index.