[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: XEN_DOMCTL_MEM_SHARING_OP_CONTROL should not depend on HAP.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1262770741 0
# Node ID bec36e63fb0e82f78ff9cfb1737b8a09cf621d05
# Parent  de9c5e3665270ce538917c81521541194d349141
x86: XEN_DOMCTL_MEM_SHARING_OP_CONTROL should not depend on HAP.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm/mem_sharing.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

diff -r de9c5e366527 -r bec36e63fb0e xen/arch/x86/mm/mem_sharing.c
--- a/xen/arch/x86/mm/mem_sharing.c     Wed Jan 06 08:25:07 2010 +0000
+++ b/xen/arch/x86/mm/mem_sharing.c     Wed Jan 06 09:39:01 2010 +0000
@@ -731,12 +731,9 @@ int mem_sharing_domctl(struct domain *d,
     {
         case XEN_DOMCTL_MEM_SHARING_OP_CONTROL:
         {
-            rc = 0;
-            if(!hap_enabled(d))
-                return -EINVAL;
             d->arch.hvm_domain.mem_sharing_enabled = mec->u.enable;
             mem_sharing_audit();
-            return 0; 
+            rc = 0;
         }
         break;
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.