From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: large page size virtio issues Date: Wed, 05 Nov 2008 11:33:42 -0600 Message-ID: <4911D8F6.9070602@us.ibm.com> References: <1225836860.15410.32.camel@localhost.localdomain> <200811052316.47127.rusty@rustcorp.com.au> <4911A87A.4010209@us.ibm.com> <1225902738.26835.51.camel@localhost.localdomain> <4911D70B.8000905@us.ibm.com> <1225906304.26835.75.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rusty Russell , kvm-ppc , kvm To: Hollis Blanchard Return-path: In-Reply-To: <1225906304.26835.75.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> Sender: kvm-ppc-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: kvm.vger.kernel.org Hollis Blanchard wrote: > On Wed, 2008-11-05 at 11:25 -0600, Anthony Liguori wrote: > >> I think we should just have a VIRTIO_PFN_SHIFT define that is >> architecture specific. >> >> On x86, it'll be 4k. You can make it whatever you want for PPC. >> Fixing all architectures to be 4k is going to suck for architectures >> with < 4k pages. >> > > So we're now in agreement that it should be hardcoded. I don't see much > value in making the actual value arch-specific, but either way it will > solve (at least part of, and maybe all of) my problem. Rusty? > When you balloon pages, you need to pass something that points to the beginning of a page boundary. If your page size is 2k, then if you are only able to pass 4k addresses, you can't below any page that happens to not be 4k aligned. If you were going to make it common across all architectures, you would have to make it the smallest possible page size and that would break x86 backwards compatibility. Regards, Anthony Liguori -- 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