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-devel

[Xen-devel] Q: XENMEM_maximum_reservation

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Q: XENMEM_maximum_reservation
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Thu, 25 May 2006 08:07:22 -0400
Delivery-date: Thu, 25 May 2006 05:07:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
AFAICT, XENMEM_current_reservation and XENMEM_maximum_reservation are not used by Linux. However, if they were do we have to pass the domid_t as a pointer? could we not pass it by value?

file: xen/common/memory.c: 369
Rather than
        if ( copy_from_guest(&domid, arg, 1) )

how about:
        domid = (domid_t)arg;

thoughts?
-JX

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Q: XENMEM_maximum_reservation, Jimi Xenidis <=