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

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

 



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



[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