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

[Xen-changelog] [xen master] x86/mem_sharing: relax sanity check for memops



commit c566ffadec51aecafbda17e3830d063966b634fd
Author:     Tamas K Lengyel <tklengyel@xxxxxxxxxxxxx>
AuthorDate: Wed Jun 24 10:33:05 2015 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Jun 24 10:33:05 2015 +0200

    x86/mem_sharing: relax sanity check for memops
    
    The sharing vm_event ring being enabled is not necessary for mem_sharing
    memops.
    
    Signed-off-by: Tamas K Lengyel <tklengyel@xxxxxxxxxxxxx>
    Reviewed-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
---
 xen/arch/x86/mm/mem_sharing.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/xen/arch/x86/mm/mem_sharing.c b/xen/arch/x86/mm/mem_sharing.c
index 0700f00..16e329e 100644
--- a/xen/arch/x86/mm/mem_sharing.c
+++ b/xen/arch/x86/mm/mem_sharing.c
@@ -1320,10 +1320,6 @@ int 
mem_sharing_memop(XEN_GUEST_HANDLE_PARAM(xen_mem_sharing_op_t) arg)
     if ( !hap_enabled(d) || !d->arch.hvm_domain.mem_sharing_enabled )
         goto out;
 
-    rc = -ENODEV;
-    if ( unlikely(!d->vm_event->share.ring_page) )
-        goto out;
-
     switch ( mso.op )
     {
         case XENMEM_sharing_op_nominate_gfn:
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.