Re: [PATCH] Remove heavy is_empty_shadow_page call.

Dong, Eddie
2007-04-25T08:09:41Z

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

Sorry for that, attached now.
Eddie

-----Original Message-----
From: Avi Kivity [mailto:avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org]
Sent: 2007年4月25日 16:03
To: Dong, Eddie
Cc: kvm-devel
Subject: Re: [kvm-devel] [PATCH] Remove heavy is_empty_shadow_page call.

Dong, Eddie wrote:
> A minor patch to avoid heavy is_empty_shadow_page for release version.
>
>
>

Please resend as attachment, you email client mangled the patch.

--
error compiling committee.c: too many arguments to function

[-- Attachment #2: assert.diff --]
[-- Type: application/octet-stream, Size: 720 bytes --]

commit 2578b40853dc8601ffaf76bac40a40653b2e8639
Author: Yaozu Dong <eddie.dong@intel.com>
Date: Wed Apr 25 14:17:25 2007 +0800

Avoid heavy ASSERT at non debug mode.

diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index e85b4c7..58fdd7b 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -52,11 +52,15 @@ static void kvm_mmu_audit(struct kvm_vcpu *vcpu, const char *msg) {}
static int dbg = 1;
#endif

+#if defined(MMU_DEBUG)
+#define ASSERT(x) do { } while (0)
+#else
#define ASSERT(x) \
if (!(x)) { \
printk(KERN_WARNING "assertion failed %s:%d: %s\n", \
__FILE__, __LINE__, #x); \
}
+#endif

#define PT64_PT_BITS 9
#define PT64_ENT_PER_PAGE (1 << PT64_PT_BITS)

[-- Attachment #3: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org