Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-06-13 Thread David Gibson
On Mon, May 07, 2018 at 03:48:54PM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-27 at 22:17 +1000, David Gibson wrote: > > On Fri, Apr 27, 2018 at 10:31:10AM +0200, Andrea Bolognani wrote: > > > On Fri, 2018-04-27 at 12:14 +1000, David Gibson wrote: > > > > Right.. note that with the draft

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-05-07 Thread Andrea Bolognani
On Fri, 2018-04-27 at 22:17 +1000, David Gibson wrote: > On Fri, Apr 27, 2018 at 10:31:10AM +0200, Andrea Bolognani wrote: > > On Fri, 2018-04-27 at 12:14 +1000, David Gibson wrote: > > > Right.. note that with the draft qemu patches a TCG guest will be > > > prevented from using hugepages *by

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-27 Thread David Gibson
On Fri, Apr 27, 2018 at 10:31:10AM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-27 at 12:14 +1000, David Gibson wrote: > > On Thu, Apr 26, 2018 at 10:45:40AM +0200, Andrea Bolognani wrote: > > > Unfortunately, that pretty much seals the deal on libvirt *not* being > > > able to infer the value

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-27 Thread Andrea Bolognani
On Fri, 2018-04-27 at 12:14 +1000, David Gibson wrote: > On Thu, Apr 26, 2018 at 10:45:40AM +0200, Andrea Bolognani wrote: > > Unfortunately, that pretty much seals the deal on libvirt *not* being > > able to infer the value from other guest settings :( > > > > The only reasonable candidate would

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-26 Thread David Gibson
On Thu, Apr 26, 2018 at 10:45:40AM +0200, Andrea Bolognani wrote: > On Thu, 2018-04-26 at 10:55 +1000, David Gibson wrote: > > On Wed, Apr 25, 2018 at 06:09:26PM +0200, Andrea Bolognani wrote: > > > The new parameter would make it possible to make sure you will > > > actually be able to use the

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-26 Thread Andrea Bolognani
On Thu, 2018-04-26 at 10:55 +1000, David Gibson wrote: > On Wed, Apr 25, 2018 at 06:09:26PM +0200, Andrea Bolognani wrote: > > The new parameter would make it possible to make sure you will > > actually be able to use the page size you're interested in inside > > the guest, by preventing it from

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-25 Thread David Gibson
On Wed, Apr 25, 2018 at 06:09:26PM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > > Is the 16 MiB page size available for both POWER8 and POWER9? > > > > No. That's a big part of

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-25 Thread Andrea Bolognani
On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > Is the 16 MiB page size available for both POWER8 and POWER9? > > No. That's a big part of what makes this such a mess. HPT has 16MiB > and 16GiB hugepages, RPT has

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-25 Thread David Gibson
On Tue, Apr 24, 2018 at 05:35:59PM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > > I'll have to look into it to be sure, but I think it should be > > > possible for libvirt to

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-24 Thread Andrea Bolognani
On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > I'll have to look into it to be sure, but I think it should be > > possible for libvirt to convert a generic > > > > > > > > > > > > to a more specific > > >

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-23 Thread David Gibson
On Mon, Apr 23, 2018 at 10:31:39AM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > > I'll check out what other distros are doing: if all the major ones > > > are defaulting to 64 KiB

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-23 Thread Andrea Bolognani
On Fri, 2018-04-20 at 20:21 +1000, David Gibson wrote: > On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > > I'll check out what other distros are doing: if all the major ones > > are defaulting to 64 KiB pages these days, it might be reasonable > > to do the same and pretend

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-20 Thread David Gibson
On Fri, Apr 20, 2018 at 11:31:10AM +0200, Andrea Bolognani wrote: > On Fri, 2018-04-20 at 12:35 +1000, David Gibson wrote: > > On Thu, Apr 19, 2018 at 05:30:04PM +0200, Andrea Bolognani wrote: > > > On Thu, 2018-04-19 at 16:29 +1000, David Gibson wrote: > > > > This means that in order to use

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-20 Thread Andrea Bolognani
On Fri, 2018-04-20 at 12:35 +1000, David Gibson wrote: > On Thu, Apr 19, 2018 at 05:30:04PM +0200, Andrea Bolognani wrote: > > On Thu, 2018-04-19 at 16:29 +1000, David Gibson wrote: > > > This means that in order to use hugepages in a PAPR guest it's > > > necessary to add a "cap-hpt-mps=24"

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-19 Thread David Gibson
On Thu, Apr 19, 2018 at 05:30:04PM +0200, Andrea Bolognani wrote: > On Thu, 2018-04-19 at 16:29 +1000, David Gibson wrote: > > Currently the "pseries" machine type will (usually) advertise > > different pagesizes to the guest when running under KVM and TCG, which > > is not how things are supposed

Re: [Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-19 Thread Andrea Bolognani
On Thu, 2018-04-19 at 16:29 +1000, David Gibson wrote: > Currently the "pseries" machine type will (usually) advertise > different pagesizes to the guest when running under KVM and TCG, which > is not how things are supposed to work. > > This comes from poor handling of hardware limitations which

[Qemu-devel] [RFC for-2.13 0/7] spapr: Clean up pagesize handling

2018-04-19 Thread David Gibson
Currently the "pseries" machine type will (usually) advertise different pagesizes to the guest when running under KVM and TCG, which is not how things are supposed to work. This comes from poor handling of hardware limitations which mean that under KVM HV the guest is unable to use pagesizes