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] [rfc 8/8] qemu-xen: pass-through: rename vslot to vdevfn and

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [rfc 8/8] qemu-xen: pass-through: rename vslot to vdevfn and vslots to vdevfns
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Wed, 17 Jun 2009 18:07:44 +1000
Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>, Dexuan Cui <dexuan.cui@xxxxxxxxx>
Delivery-date: Wed, 17 Jun 2009 01:24:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090617080736.631945993@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.46-1
This is a noisy patch that makes no functional changes.
It renames vslot to vdevfn and vslots to vdevfns.

This breaks compatibility with xend and as a xenstore entry has been renamed.
A companion patch for that code will be posted separately.

Cc: Dexuan Cui <dexuan.cui@xxxxxxxxx>
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

--- 

Co-Dependent on
"xend: pass-through: rename vslot to vdevfn and vslots to vdevfns"

Index: ioemu-remote/qemu-xen.h
===================================================================
--- ioemu-remote.orig/qemu-xen.h        2009-06-15 11:26:01.000000000 +1000
+++ ioemu-remote/qemu-xen.h     2009-06-15 11:26:10.000000000 +1000
@@ -71,7 +71,7 @@ void xenstore_record_dm_state(const char
 void xenstore_check_new_media_present(int timeout);
 void xenstore_write_vncport(int vnc_display);
 void xenstore_read_vncpasswd(int domid, char *pwbuf, size_t pwbuflen);
-void xenstore_write_vslots(char *vslots);
+void xenstore_write_vdevfns(char *vdevfns);
 
 int xenstore_domain_has_devtype_danger(struct xs_handle *handle,
                                 const char *devtype);
Index: ioemu-remote/xenstore.c
===================================================================
--- ioemu-remote.orig/xenstore.c        2009-06-15 11:26:01.000000000 +1000
+++ ioemu-remote/xenstore.c     2009-06-15 11:26:10.000000000 +1000
@@ -971,18 +971,18 @@ void xenstore_write_vncport(int display)
     free(buf);
 }
 
-void xenstore_write_vslots(char *vslots)
+void xenstore_write_vdevfns(char *vdevfns)
 {
     char *path = NULL;
     int pci_devid = 0;
 
     if (pasprintf(&path, 
-                  "/local/domain/0/backend/pci/%u/%u/vslots", domid, 
pci_devid) == -1) {
-        fprintf(logfile, "out of memory when updating vslots.\n");
+                  "/local/domain/0/backend/pci/%u/%u/vdevfns", domid, 
pci_devid) == -1) {
+        fprintf(logfile, "out of memory when updating vdevfns.\n");
         goto out;
     }
-    if (!xs_write(xsh, XBT_NULL, path, vslots, strlen(vslots)))
-        fprintf(logfile, "error updating vslots \n");
+    if (!xs_write(xsh, XBT_NULL, path, vdevfns, strlen(vdevfns)))
+        fprintf(logfile, "error updating vdevfns \n");
 
  out:
     free(path);

-- 

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