Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2015-01-08 Thread Ian Campbell
On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > Actually Wei suggested a better alternative: I could call > xc_domain_setmaxmem directly from QEMU. That makes much more sense. Do you have links to the patches for the final approach you decided to take here? Or maybe just resend? Ei

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Don Slutz
On 11/25/14 07:43, Stefano Stabellini wrote: Account for the extra memory needed for the rom files of any emulated nics: QEMU uses xc_domain_populate_physmap_exact to allocate the memory for each them. Assume 256K each. I have seen that this is no longer planned for 4.5, but I do think that li

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Don Slutz
On 11/26/14 09:40, Konrad Rzeszutek Wilk wrote: On Wed, Nov 26, 2014 at 01:04:00PM +, Ian Campbell wrote: On Wed, 2014-11-26 at 12:39 +, Stefano Stabellini wrote: On Wed, 26 Nov 2014, Ian Campbell wrote: On Tue, 2014-11-25 at 17:05 +, Stefano Stabellini wrote: On Tue, 25 Nov 2014,

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Konrad Rzeszutek Wilk
On Wed, Nov 26, 2014 at 01:04:00PM +, Ian Campbell wrote: > On Wed, 2014-11-26 at 12:39 +, Stefano Stabellini wrote: > > On Wed, 26 Nov 2014, Ian Campbell wrote: > > > On Tue, 2014-11-25 at 17:05 +, Stefano Stabellini wrote: > > > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > > > On

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Ian Campbell
On Wed, 2014-11-26 at 12:39 +, Stefano Stabellini wrote: > On Wed, 26 Nov 2014, Ian Campbell wrote: > > On Tue, 2014-11-25 at 17:05 +, Stefano Stabellini wrote: > > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > > On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > > > > > On T

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Stefano Stabellini
On Wed, 26 Nov 2014, Ian Campbell wrote: > On Tue, 2014-11-25 at 17:05 +, Stefano Stabellini wrote: > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > > > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > > > On Tue, 2014-11-25 at 12

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-26 Thread Ian Campbell
On Tue, 2014-11-25 at 17:05 +, Stefano Stabellini wrote: > On Tue, 25 Nov 2014, Ian Campbell wrote: > > On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > > On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > > > > > Acco

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Wei Liu
On Tue, Nov 25, 2014 at 04:56:02PM +, Ian Campbell wrote: > On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > > > > Account for the extra memory needed for the rom files

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Ian Campbell
On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > On Tue, 25 Nov 2014, Ian Campbell wrote: > > On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > > > Account for the extra memory needed for the rom files of any emulated > > > nics: > > > QEMU uses xc_domain_populate_physma

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Stefano Stabellini
On Tue, 25 Nov 2014, Ian Campbell wrote: > On Tue, 2014-11-25 at 16:49 +, Stefano Stabellini wrote: > > On Tue, 25 Nov 2014, Ian Campbell wrote: > > > On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > > > > Account for the extra memory needed for the rom files of any emulated > >

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Stefano Stabellini
On Tue, 25 Nov 2014, Ian Campbell wrote: > On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > > Account for the extra memory needed for the rom files of any emulated nics: > > QEMU uses xc_domain_populate_physmap_exact to allocate the memory for > > each them. Assume 256K each. > > I s

Re: [Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Ian Campbell
On Tue, 2014-11-25 at 12:43 +, Stefano Stabellini wrote: > Account for the extra memory needed for the rom files of any emulated nics: > QEMU uses xc_domain_populate_physmap_exact to allocate the memory for > each them. Assume 256K each. I suppose this will have to do for 4.5. Can we do someth

[Xen-devel] [PATCH v2 for-4.5] libxl: account for romfile memory

2014-11-25 Thread Stefano Stabellini
Account for the extra memory needed for the rom files of any emulated nics: QEMU uses xc_domain_populate_physmap_exact to allocate the memory for each them. Assume 256K each. This patch fixes a QEMU abort() when more than 4 emulated nics are assigned to a VM. Signed-off-by: Stefano Stabellini CC