WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] dom0vp machtophys fix argument che

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] dom0vp machtophys fix argument check
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Jul 2006 10:20:39 +0000
Delivery-date: Mon, 03 Jul 2006 03:27:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 59d4c1863330e2023b05043d450da39cda47bd5a
# Parent  795d31772505ac8f951a70c1ef39aaa09cda7f47
[IA64] dom0vp machtophys fix argument check

fix argument check of dom0vp machtophys hypercall. use valid_mfn()

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/dom0_ops.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 795d31772505 -r 59d4c1863330 xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Fri Jun 23 15:24:06 2006 -0600
+++ b/xen/arch/ia64/xen/dom0_ops.c      Fri Jun 23 15:26:01 2006 -0600
@@ -256,7 +256,7 @@ do_dom0vp_op(unsigned long cmd,
         }
         break;
     case IA64_DOM0VP_machtophys:
-        if (max_page <= arg0) {
+        if (!mfn_valid(arg0)) {
             ret = INVALID_M2P_ENTRY;
             break;
         }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] dom0vp machtophys fix argument check, Xen patchbot-unstable <=