All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch v4 0/6] KVM: Guest page hinting
@ 2017-11-03 20:30 nilal
  2017-11-03 20:30 ` [Patch v4 1/6] KVM: Support for guest " nilal
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: nilal @ 2017-11-03 20:30 UTC (permalink / raw)
  To: kvm, pbonzini, pagupta, wei.w.wang, yang.zhang.wz, riel, david,
	mst, dodgen, konrad.wilk

The following patch-set proposes an efficient mechanism for handing freed memory between the guest and the host. It enables the guests with DAX (no page cache) to rapidly free and reclaim memory to and from the host respectively. 

Changelog in V4:
	-Undefined reference for arch_free_page and arch_alloc_page when KVM is build as a module is fixed
	-Batched guest free pages could be transmitted to the host/QEMU with one single kick
	-Enabling or disabling guest page hinting support could be done through sysctl variable on the run-time
	-Basic functional testing for this support is done

Virtio interface changes are picked up from Wei's patch-set for Virtio-balloon enhancement[3]. "Wei, How would you like me to credit you in the final patch?")

Performance:
	Test criteria: Kernel Build
	Command: make clean;make defconfig;time make
	With Hinting:
		real: 21m24.680s
		user: 16m3.362s
		sys : 2m19.027s
	Without Hinting:
		real: 21m18.062s
		user: 16m13.969s
		sys : 1m17.884s

	Test criteria: Stress Test
	Command: time stress --io 2 --cpu 2 --vm 2 --vm-bytes 1024M --timeout 100s -v
	With Hinting:
		real: 1m40.726s
		user: 1m23.449s
		sys : 0m5.576s
	Without Hinting:
		real: 1m40.378s
		user: 1m21.292s
		sys : 0m4.972s

[1] http://www.spinics.net/lists/kvm/msg153666.html
[2] https://www.spinics.net/lists/kvm/msg155471.html
[3] http://www.spinics.net/lists/kvm/msg152734.html
[4] https://www.spinics.net/lists/kvm/msg156658.html

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [Patch v6 0/7] KVM: Guest page hinting
@ 2017-12-01 17:31 nilal
  2017-12-01 17:32 ` [QEMU PATCH] kvm: Support for guest " nilal
  0 siblings, 1 reply; 20+ messages in thread
From: nilal @ 2017-12-01 17:31 UTC (permalink / raw)
  To: kvm, pbonzini, pagupta, wei.w.wang, yang.zhang.wz, riel, david,
	mst, dodgen, konrad.wilk

Changelog in v6:
	-Moved CONFIG_KVM_FREE_PAGE_HINTING from virt/kvm/Kconfig to arch/x86/kvm/Kconfig in order to resolve conflicts with other architectures:
		*s390 has its own page hinting functionality
		*powerpc has its own arch_free_page implementation
	-Fixed the typo in virtio_balloon structure which caused compilation issues when guest page hinting was disabled
	-Separated init_vqs implementation with and without hinting_vq enablement based on the CONFIG_KVM_FREE_PAGE_HINTING ifdef

Virtio interface changes are picked up from Wei's patch-set for Virtio-balloon enhancement[3]. "Wei, How would you like me to credit you in the final patch?")

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [Patch v5 0/7] KVM: Guest page hinting
@ 2017-11-28 20:03 nilal
  2017-11-28 20:04 ` [QEMU PATCH] kvm: Support for guest " nilal
  0 siblings, 1 reply; 20+ messages in thread
From: nilal @ 2017-11-28 20:03 UTC (permalink / raw)
  To: kvm, pbonzini, pagupta, wei.w.wang, yang.zhang.wz, riel, david,
	mst, dodgen, konrad.wilk

Changelog in v5:
        -Fix to automatically enable CONFIG_VIRTIO and CONFIG_VIRTIO_BALLOON with CONFIG_KVM_FREE_PAGE_HINTING
        -Moved virtio_ballon hinting_vq code under KVM_FREE_PAGE_HINTING ifdef
	-Changes to add VIRTIO_GUEST_PAGE_HINTING_VQ as guest feature which after feature negotiation with QEMU enables guest page hinting support if supported
        -Moved sysctl to vm_table struct from fs_table struct
        -Fix to disable posioning when guest page hinting is enabled
        -QEMU changes
                - Removed unencessary comment from page_hinting_request()
                - Removed extra variable 'i' from pop_hinting_addr()
		- Changes to support VIRTIO_GUEST_PAGE_HINTING_VQ feature negotiation

Virtio interface changes are picked up from Wei's patch-set for Virtio-balloon enhancement[3]. "Wei, How would you like me to credit you in the final patch?")

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [Patch v3 0/5] KVM: Guest page hinting
@ 2017-10-10 18:39 nilal
  2017-10-10 18:41 ` [QEMU PATCH] kvm: Support for guest " nilal
  0 siblings, 1 reply; 20+ messages in thread
From: nilal @ 2017-10-10 18:39 UTC (permalink / raw)
  To: kvm, pbonzini, pagupta, wei.w.wang, yang.zhang.wz, riel, david, mst

The following patch-set proposes an efficient mechanism for handing freed memory between the guest and the host. It enables the guests with DAX (no page cache) to rapidly free and reclaim memory to and from the host respectively. 

Changelog in V3:
	-A new hinting_vq is added to virtio_balloon for the usage of guest page hinting
	-Implmentation to pass hyperlist entries to the host via hinting_vq
	-Basic functional testing for this support is done

Virtio interface changes are picked up from Wei's patch-set for Virtio-balloon enhancement[3]. "Wei, How would you like me to credit you in the final patch?")

[1] http://www.spinics.net/lists/kvm/msg153666.html
[2] https://www.spinics.net/lists/kvm/msg155471.html
[3] http://www.spinics.net/lists/kvm/msg152734.html

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-12-01 17:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 20:30 [Patch v4 0/6] KVM: Guest page hinting nilal
2017-11-03 20:30 ` [Patch v4 1/6] KVM: Support for guest " nilal
2017-11-13 17:59   ` Michael S. Tsirkin
2017-11-15 19:38     ` Nitesh Narayan Lal
2017-11-15 20:06       ` Michael S. Tsirkin
2017-11-03 20:30 ` [Patch v4 2/6] KVM: Guest page hinting functionality nilal
2017-11-13 18:03   ` Michael S. Tsirkin
2017-11-03 20:30 ` [Patch v4 3/6] KVM: Adding tracepoints for guest page hinting nilal
2017-11-03 20:30 ` [Patch v4 4/6] virtio: Exposes added descriptor to the other side synchronously nilal
2017-11-03 20:30 ` [Patch v4 5/6] KVM: Sending hyperlist to the host via hinting_vq nilal
2017-11-03 20:30 ` [Patch v4 6/6] KVM: Enabling guest page hinting via static key nilal
2017-11-03 20:37 ` [QEMU PATCH] kvm: Support for guest page hinting nilal
2017-11-03 20:37   ` nilal
2017-11-06 11:21     ` Pankaj Gupta
2017-11-06 14:21       ` Nitesh Narayan Lal
2017-11-12 21:23 ` [Patch v4 0/6] KVM: Guest " Rik van Riel
2017-11-13 15:14   ` Nitesh Narayan Lal
  -- strict thread matches above, loose matches on Subject: below --
2017-12-01 17:31 [Patch v6 0/7] " nilal
2017-12-01 17:32 ` [QEMU PATCH] kvm: Support for guest " nilal
2017-11-28 20:03 [Patch v5 0/7] KVM: Guest " nilal
2017-11-28 20:04 ` [QEMU PATCH] kvm: Support for guest " nilal
2017-10-10 18:39 [Patch v3 0/5] KVM: Guest " nilal
2017-10-10 18:41 ` [QEMU PATCH] kvm: Support for guest " nilal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.