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. Paolo