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] Revert c/s 7626 -- it's missing a new file.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Revert c/s 7626 -- it's missing a new file.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 06 Nov 2005 19:56:08 +0000
Delivery-date: Sun, 06 Nov 2005 23:12:45 +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-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 270469d40f026bca0b7325d3f015a0a4382d28a4
# Parent  55194bd55b86383fa82797f99f95587f6d14fa30
Revert c/s 7626 -- it's missing a new file.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 55194bd55b86 -r 270469d40f02 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Sun Nov  6 16:50:24 2005
+++ b/tools/python/xen/xend/XendDomain.py       Sun Nov  6 18:50:33 2005
@@ -492,40 +492,6 @@
         except Exception, ex:
             raise XendError(str(ex))
 
-    def domain_ioport_range_enable(self, domid, first, last):
-        """Enable access to a range of IO ports for a domain
-
-        @param first: first IO port
-        @param last: last IO port
-        @return: 0 on success, -1 on error
-        """
-        dominfo = self.domain_lookup(domid)
-        nr_ports = last - first + 1
-        try:
-            return xc.domain_ioport_permission(dominfo.getDomid(),
-                                               first_port = first,
-                                               nr_ports = nr_ports,
-                                               allow_access = 1)
-        except Exception, ex:
-            raise XendError(str(ex))
-
-    def domain_ioport_range_disable(self, domid, first, last):
-        """Disable access to a range of IO ports for a domain
-
-        @param first: first IO port
-        @param last: last IO port
-        @return: 0 on success, -1 on error
-        """
-        dominfo = self.domain_lookup(domid)
-        nr_ports = last - first + 1
-        try:
-            return xc.domain_ioport_permission(dominfo.getDomid(),
-                                               first_port = first,
-                                               nr_ports = nr_ports,
-                                               allow_access = 0)
-        except Exception, ex:
-            raise XendError(str(ex))
-
 
 def instance():
     """Singleton constructor. Use this instead of the class constructor.
diff -r 55194bd55b86 -r 270469d40f02 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Sun Nov  6 16:50:24 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Sun Nov  6 18:50:33 2005
@@ -1400,10 +1400,9 @@
     controllerClasses[device_class] = cls
 
 
-from xen.xend.server import blkif, netif, tpmif, pciif, iopif, usbif
+from xen.xend.server import blkif, netif, tpmif, pciif, usbif
 addControllerClass('vbd',  blkif.BlkifController)
 addControllerClass('vif',  netif.NetifController)
 addControllerClass('vtpm', tpmif.TPMifController)
 addControllerClass('pci',  pciif.PciController)
-addControllerClass('ioports', iopif.IOPortsController)
 addControllerClass('usb',  usbif.UsbifController)
diff -r 55194bd55b86 -r 270469d40f02 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Sun Nov  6 16:50:24 2005
+++ b/tools/python/xen/xm/create.py     Sun Nov  6 18:50:33 2005
@@ -241,12 +241,6 @@
          For example '-pci c0,02,1a'.
          The option may be repeated to add more than one pci device.""")
 
-gopts.var('ioports', val='FROM[-TO]',
-          fn=append_value, default=[],
-          use="""Add a legacy I/O range to a domain, using given params (in 
hex).
-         For example '-ioports 02f8-02ff'.
-         The option may be repeated to add more than one i/o range.""")
-
 gopts.var('usb', val='PATH',
           fn=append_value, default=[],
           use="""Add a physical USB port to a domain, as specified by the path
@@ -444,13 +438,6 @@
     for (bus, dev, func) in vals.pci:
         config_pci = ['pci', ['bus', bus], ['dev', dev], ['func', func]]
         config_devs.append(['device', config_pci])
-
-def configure_ioports(config_devs, vals):
-    """Create the config for legacy i/o ranges.
-    """
-    for (io_from, io_to) in vals.ioports:
-        config_ioports = ['ioports', ['from', io_from], ['to', io_to]]
-        config_devs.append(['device', config_ioports])
 
 def configure_usb(config_devs, vals):
     for path in vals.usb:
@@ -624,7 +611,6 @@
     config_devs = []
     configure_disks(config_devs, vals)
     configure_pci(config_devs, vals)
-    configure_ioports(config_devs, vals)
     configure_vifs(config_devs, vals)
     configure_usb(config_devs, vals)
     configure_vtpm(config_devs, vals)
@@ -659,20 +645,6 @@
         pci.append(hexd)
     vals.pci = pci
 
-def preprocess_ioports(vals):
-    if not vals.ioports: return
-    ioports = []
-    for v in vals.ioports:
-        d = v.split('-')
-        if len(d) < 1 || len(d) > 2:
-            err('Invalid i/o port range specifier: ' + v)
-        if len(d) == 1:
-            d.append(d[0])
-        # Components are in hex: add hex specifier.
-        hexd = map(lambda v: '0x'+v, d)
-        ioports.append(hexd)
-    vals.ioports = ioports
-        
 def preprocess_vifs(vals):
     if not vals.vif: return
     vifs = []
@@ -805,7 +777,6 @@
         err("No kernel specified")
     preprocess_disk(vals)
     preprocess_pci(vals)
-    preprocess_ioports(vals)
     preprocess_vifs(vals)
     preprocess_ip(vals)
     preprocess_nfs(vals)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Revert c/s 7626 -- it's missing a new file., Xen patchbot -unstable <=