From mboxrd@z Thu Jan 1 00:00:00 1970 From: Izik Eidus Subject: [PATCH 4/4] Swapping Date: Sat, 13 Oct 2007 04:19:58 +0200 Message-ID: <47102B4E.20909@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070400030101010108080100" To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------070400030101010108080100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit this patch just remove the memset from kvmctl, so the vm will load much faster now --------------070400030101010108080100 Content-Type: text/x-patch; name="0003-now-that-gfn_to_page-get-called-at-run-time-we-dont.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0003-now-that-gfn_to_page-get-called-at-run-time-we-dont.pat"; filename*1="ch" >>From dc0164113041c2f2bf22fc066ca99b9b8531d627 Mon Sep 17 00:00:00 2001 From: Izik Eidus Date: Sat, 13 Oct 2007 02:56:25 +0200 Subject: [PATCH] now that gfn_to_page get called at run time, we dont have to do memset on the memory. (it is now much faster to load VM with alot of memory) Signed-off-by: Izik Eidus --- user/kvmctl.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/user/kvmctl.c b/user/kvmctl.c index 0604f2f..ff2014e 100644 --- a/user/kvmctl.c +++ b/user/kvmctl.c @@ -391,7 +391,6 @@ int kvm_alloc_userspace_memory(kvm_context_t kvm, unsigned long memory, low_memory.userspace_addr = (unsigned long)*vm_mem; - memset((unsigned long *)low_memory.userspace_addr, 0, low_memory.memory_size); /* 640K should be enough. */ r = ioctl(kvm->vm_fd, KVM_SET_USER_MEMORY_REGION, &low_memory); if (r == -1) { @@ -406,7 +405,6 @@ int kvm_alloc_userspace_memory(kvm_context_t kvm, unsigned long memory, return -1; } extended_memory.userspace_addr = (unsigned long)(*vm_mem + exmem); - memset((unsigned long *)extended_memory.userspace_addr, 0, extended_memory.memory_size); r = ioctl(kvm->vm_fd, KVM_SET_USER_MEMORY_REGION, &extended_memory); if (r == -1) { fprintf(stderr, "kvm_create_memory_region: %m\n"); @@ -422,7 +420,6 @@ int kvm_alloc_userspace_memory(kvm_context_t kvm, unsigned long memory, return -1; } above_4g_memory.userspace_addr = (unsigned long)(*vm_mem + 0x100000000); - memset((unsigned long *)above_4g_memory.userspace_addr, 0, above_4g_memory.memory_size); r = ioctl(kvm->vm_fd, KVM_SET_USER_MEMORY_REGION, &above_4g_memory); if (r == -1) { fprintf(stderr, "kvm_create_memory_region: %m\n"); -- 1.5.2.4 --------------070400030101010108080100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --------------070400030101010108080100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------070400030101010108080100--