From mboxrd@z Thu Jan 1 00:00:00 1970 From: Izik Eidus Subject: [PATCH 1/2] making update_dirty_bit get called without disabling preempt Date: Mon, 15 Oct 2007 23:23:02 +0200 Message-ID: <4713DA36.80205@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020108020007020106010706" To: kvm-devel 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. --------------020108020007020106010706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------020108020007020106010706 Content-Type: text/x-patch; name="0003-making-update_dirty_bit-get-called-without-disabling.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="0003-making-update_dirty_bit-get-called-without-disabling.pa"; filename*1="tch" >>From d11f64d00e5fd5fdcd6c82bf819653f392e5ad2b Mon Sep 17 00:00:00 2001 From: Izik Eidus Date: Mon, 15 Oct 2007 19:24:52 +0200 Subject: [PATCH] making update_dirty_bit get called without disabling preempt Signed-off-by: Izik Eidus --- drivers/kvm/paging_tmpl.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 600b1cc..bd850c4 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/drivers/kvm/paging_tmpl.h @@ -156,6 +156,8 @@ static int FNAME(walk_addr)(struct guest_walker *walker, if (walker->level == PT_PAGE_TABLE_LEVEL) { walker->gfn = (*ptep & PT_BASE_ADDR_MASK) >> PAGE_SHIFT; + kunmap_atomic(walker->table, KM_USER0); + walker->table = NULL; FNAME(update_dirty_bit)(vcpu, write_fault, ptep, table_gfn); break; @@ -167,6 +169,8 @@ static int FNAME(walk_addr)(struct guest_walker *walker, walker->gfn = (*ptep & PT_DIR_BASE_ADDR_MASK) >> PAGE_SHIFT; walker->gfn += PT_INDEX(addr, PT_PAGE_TABLE_LEVEL); + kunmap_atomic(walker->table, KM_USER0); + walker->table = NULL; FNAME(update_dirty_bit)(vcpu, write_fault, ptep, table_gfn); break; -- 1.5.2.4 --------------020108020007020106010706 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/ --------------020108020007020106010706 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 --------------020108020007020106010706--