Re: [PATCH 4/5] kvm: selftest: introduce _vm_create_default()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 20, 2018 at 11:37:52AM +0200, Paolo Bonzini wrote:
> On 20/08/2018 09:53, Peter Xu wrote:
> > +/* Please refer to _vm_create_default() */
> > +struct kvm_vm *vm_create_default(uint32_t vcpuid, void *guest_code)
> > +{
> > +	return _vm_create_default(vcpuid, DEFAULT_GUEST_PHY_PAGES,
> > +				  guest_code);
> > +}
> > +
> 
> Let's just add the argument to vm_create_default and add an
> 
> 	npages = MIN(DEFAULT_GUEST_PHY_PAGES, npages);
> 
> to vm_create.  This way all existing callers of vm_create_default can
> just pass zero.

Sure! (I suppose you mean MAX)

Regards,

-- 
Peter Xu



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux