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] Remove vmassist dom0_op. Can now adjust vm assists via s

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 30 Mar 2005 11:04:51 +0000
Delivery-date: Wed, 30 Mar 2005 12:03:41 +0000
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/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 Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1397, 2005/03/30 12:04:51+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 tools/libxc/xc.h              |    5 -----
 tools/libxc/xc_domain.c       |   13 -------------
 xen/common/dom0_ops.c         |   15 ---------------
 xen/include/public/dom0_ops.h |   10 ----------
 4 files changed, 43 deletions(-)


diff -Nru a/tools/libxc/xc.h b/tools/libxc/xc.h
--- a/tools/libxc/xc.h  2005-03-30 07:03:40 -05:00
+++ b/tools/libxc/xc.h  2005-03-30 07:03:40 -05:00
@@ -375,11 +375,6 @@
                         u32 domid, 
                         unsigned int max_memkb);
 
-int xc_domain_setvmassist(int xc_handle,
-                          u32 domid, 
-                          unsigned int cmd,
-                          unsigned int type);
-
 typedef dom0_perfc_desc_t xc_perfc_desc_t;
 /* IMPORTANT: The caller is responsible for mlock()'ing the @desc array. */
 int xc_perfc_control(int xc_handle,
diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c   2005-03-30 07:03:40 -05:00
+++ b/tools/libxc/xc_domain.c   2005-03-30 07:03:40 -05:00
@@ -243,16 +243,3 @@
     op.u.setdomainmaxmem.max_memkb = max_memkb;
     return do_dom0_op(xc_handle, &op);
 }
-
-int xc_domain_setvmassist(int xc_handle,
-                          u32 domid, 
-                          unsigned int cmd,
-                          unsigned int type)
-{
-    dom0_op_t op;
-    op.cmd = DOM0_SETDOMAINVMASSIST;
-    op.u.setdomainvmassist.domain = (domid_t)domid;
-    op.u.setdomainvmassist.cmd = cmd;
-    op.u.setdomainvmassist.type = type;
-    return do_dom0_op(xc_handle, &op);
-}
diff -Nru a/xen/common/dom0_ops.c b/xen/common/dom0_ops.c
--- a/xen/common/dom0_ops.c     2005-03-30 07:03:40 -05:00
+++ b/xen/common/dom0_ops.c     2005-03-30 07:03:40 -05:00
@@ -451,21 +451,6 @@
     }
     break;
 
-    case DOM0_SETDOMAINVMASSIST:
-    {
-        struct domain *d; 
-        ret = -ESRCH;
-        d = find_domain_by_id( op->u.setdomainvmassist.domain );
-        if ( d != NULL )
-        {
-            vm_assist(d, op->u.setdomainvmassist.cmd,
-                      op->u.setdomainvmassist.type);
-            put_domain(d);
-            ret = 0;
-        }
-    }
-    break;
-
 #ifdef PERF_COUNTERS
     case DOM0_PERFCCONTROL:
     {
diff -Nru a/xen/include/public/dom0_ops.h b/xen/include/public/dom0_ops.h
--- a/xen/include/public/dom0_ops.h     2005-03-30 07:03:40 -05:00
+++ b/xen/include/public/dom0_ops.h     2005-03-30 07:03:40 -05:00
@@ -320,15 +320,6 @@
     MEMORY_PADDING;
 } PACKED dom0_getpageframeinfo2_t; /* 24 bytes */
 
-#define DOM0_SETDOMAINVMASSIST   30
-typedef struct {
-    /* IN variables. */
-    domid_t      domain;              /*  0 */
-    u16          __pad0;
-    u32          cmd;                 /*  4: vm_assist cmd */
-    u32          type;                /*  8: vm_assist cmd */
-} PACKED dom0_setdomainvmassist_t; /* 12 bytes */
-
 /*
  * Request memory range (@pfn, @pfn+@nr_pfns-1) to have type @type.
  * On x86, @type is an architecture-defined MTRR memory type.
@@ -443,7 +434,6 @@
        dom0_setdomaininitialmem_t setdomaininitialmem;
        dom0_setdomainmaxmem_t   setdomainmaxmem;
        dom0_getpageframeinfo2_t getpageframeinfo2;
-       dom0_setdomainvmassist_t setdomainvmassist;
         dom0_add_memtype_t       add_memtype;
         dom0_del_memtype_t       del_memtype;
         dom0_read_memtype_t      read_memtype;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove vmassist dom0_op. Can now adjust vm assists via setdomaininfo., BitKeeper Bot <=