public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] simplify pdpte check
@ 2007-02-01 14:01 Muli Ben-Yehuda
       [not found] ` <20070201140138.GM2327-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Muli Ben-Yehuda @ 2007-02-01 14:01 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel

Small cleanup: we check (pdpte & 1) && (pdpte & constant). Instead
just check (pdpte & (constant | 1)).

Signed-off-by: Muli Ben-Yehuda <muli-7z/5BgaJwgfQT0dZR+AlfA@public.gmane.org>

Index: kernel/kvm_main.c
===================================================================
--- kernel/kvm_main.c	(revision 4379)
+++ kernel/kvm_main.c	(working copy)
@@ -336,7 +336,7 @@
 	ret = 1;
 	for (i = 0; i < 4; ++i) {
 		pdpte = pdpt[offset + i];
-		if ((pdpte & 1) && (pdpte & 0xfffffff0000001e6ull)) {
+		if (pdpte & 0xfffffff0000001e7ull) {
 			ret = 0;
 			goto out;
 		}



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

end of thread, other threads:[~2007-02-01 14:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-01 14:01 [PATCH] simplify pdpte check Muli Ben-Yehuda
     [not found] ` <20070201140138.GM2327-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-02-01 14:07   ` Avi Kivity
     [not found]     ` <45C1F405.5070400-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-01 14:46       ` Muli Ben-Yehuda
     [not found]         ` <20070201144606.GH15992-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-02-01 14:52           ` Avi Kivity
     [not found]             ` <45C1FEA2.4050200-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-01 14:57               ` Muli Ben-Yehuda
2007-02-01 14:52           ` Dor Laor
     [not found]             ` <64F9B87B6B770947A9F8391472E032160A3F2213-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-02-01 14:54               ` Avi Kivity
     [not found]                 ` <45C1FF23.1020201-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-01 14:56                   ` Avi Kivity
2007-02-01 14:57               ` Muli Ben-Yehuda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox