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-4.0-testing] compat-guest accessor macros do not ne

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] compat-guest accessor macros do not need address check for hvm guests.
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Jun 2010 02:45:21 -0700
Delivery-date: Wed, 02 Jun 2010 02:46:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1274858913 -3600
# Node ID 872ddbd95ad00fe70c1fe6a3653263d27423b8d6
# Parent  2758a8028721c84e5349405b4f0984b065738c22
compat-guest accessor macros do not need address check for hvm guests.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
xen-unstable changeset:   21456:a69d09da4917
xen-unstable date:        Wed May 26 08:09:38 2010 +0100
---
 xen/include/xen/compat.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 2758a8028721 -r 872ddbd95ad0 xen/include/xen/compat.h
--- a/xen/include/xen/compat.h  Wed May 26 08:28:11 2010 +0100
+++ b/xen/include/xen/compat.h  Wed May 26 08:28:33 2010 +0100
@@ -90,8 +90,9 @@
  * Allows use of faster __copy_* functions.
  */
 #define compat_handle_okay(hnd, nr)                                  \
+    (paging_mode_external(current->domain) ||                        \
     compat_array_access_ok((void *)(full_ptr_t)(hnd).c, (nr),        \
-                           sizeof(**(hnd)._))
+                           sizeof(**(hnd)._)))
 
 #define __copy_to_compat_offset(hnd, off, ptr, nr) ({                \
     const typeof(*(ptr)) *_s = (ptr);                                \

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] compat-guest accessor macros do not need address check for hvm guests., Xen patchbot-4.0-testing <=