[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1 of 3] blktap3/libxl: add new device kind and disk back-end
We use new identifiers so that blktap2 and blktap3 can co-exist. diff -r 6c1b12c884b4 -r dd920505264c tools/libxl/libxl_types.idl --- a/tools/libxl/libxl_types.idl Tue Feb 05 15:47:41 2013 +0000 +++ b/tools/libxl/libxl_types.idl Fri Feb 08 17:23:23 2013 +0000 @@ -58,6 +58,7 @@ libxl_disk_backend = Enumeration("disk_b (1, "PHY"), (2, "TAP"), (3, "QDISK"), + (4, "TAP3"), ]) libxl_nic_type = Enumeration("nic_type", [ diff -r 6c1b12c884b4 -r dd920505264c tools/libxl/libxl_types_internal.idl --- a/tools/libxl/libxl_types_internal.idl Tue Feb 05 15:47:41 2013 +0000 +++ b/tools/libxl/libxl_types_internal.idl Fri Feb 08 17:23:23 2013 +0000 @@ -20,6 +20,7 @@ libxl__device_kind = Enumeration("device (6, "VKBD"), (7, "CONSOLE"), (8, "VTPM"), + (9, "VBD3"), ]) libxl__console_backend = Enumeration("console_backend", [ diff -r 6c1b12c884b4 -r dd920505264c tools/libxl/libxlu_disk_l.c --- a/tools/libxl/libxlu_disk_l.c Tue Feb 05 15:47:41 2013 +0000 +++ b/tools/libxl/libxlu_disk_l.c Fri Feb 08 17:23:23 2013 +0000 @@ -852,6 +852,7 @@ static void setformat(DiskParseContext * static void setbackendtype(DiskParseContext *dpc, const char *str) { if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); else if (!strcmp(str,"tap")) DSET(dpc,backend,BACKEND,str,TAP); + else if (!strcmp(str,"tap3")) DSET(dpc,backend,BACKEND,str,TAP3); else if (!strcmp(str,"qdisk")) DSET(dpc,backend,BACKEND,str,QDISK); else xlu__disk_err(dpc,str,"unknown value for backendtype"); } diff -r 6c1b12c884b4 -r dd920505264c tools/libxl/libxlu_disk_l.l --- a/tools/libxl/libxlu_disk_l.l Tue Feb 05 15:47:41 2013 +0000 +++ b/tools/libxl/libxlu_disk_l.l Fri Feb 08 17:23:23 2013 +0000 @@ -109,6 +109,7 @@ static void setformat(DiskParseContext * static void setbackendtype(DiskParseContext *dpc, const char *str) { if ( !strcmp(str,"phy")) DSET(dpc,backend,BACKEND,str,PHY); else if (!strcmp(str,"tap")) DSET(dpc,backend,BACKEND,str,TAP); + else if (!strcmp(str,"tap3")) DSET(dpc,backend,BACKEND,str,TAP3); else if (!strcmp(str,"qdisk")) DSET(dpc,backend,BACKEND,str,QDISK); else xlu__disk_err(dpc,str,"unknown value for backendtype"); } _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |