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