This commit is contained in:
committed by
Git OBS Bridge
parent
f5d6338f4d
commit
8cefe055e5
@@ -2,7 +2,7 @@ Index: xen-3.3.0-testing/tools/blktap/drivers/blktapctrl.c
|
||||
===================================================================
|
||||
--- xen-3.3.0-testing.orig/tools/blktap/drivers/blktapctrl.c
|
||||
+++ xen-3.3.0-testing/tools/blktap/drivers/blktapctrl.c
|
||||
@@ -334,6 +334,7 @@ static int write_msg(int fd, int msgtype
|
||||
@@ -305,6 +305,7 @@ static int write_msg(int fd, int msgtype
|
||||
msg_dev = (msg_newdev_t *)(buf + sizeof(msg_hdr_t));
|
||||
msg_dev->devnum = blkif->minor;
|
||||
msg_dev->domid = blkif->domid;
|
||||
@@ -14,7 +14,7 @@ Index: xen-3.3.0-testing/tools/blktap/lib/blktaplib.h
|
||||
===================================================================
|
||||
--- xen-3.3.0-testing.orig/tools/blktap/lib/blktaplib.h
|
||||
+++ xen-3.3.0-testing/tools/blktap/lib/blktaplib.h
|
||||
@@ -183,6 +183,7 @@ typedef struct msg_hdr {
|
||||
@@ -189,6 +189,7 @@ typedef struct msg_hdr {
|
||||
typedef struct msg_newdev {
|
||||
uint8_t devnum;
|
||||
uint16_t domid;
|
||||
@@ -22,11 +22,11 @@ Index: xen-3.3.0-testing/tools/blktap/lib/blktaplib.h
|
||||
} msg_newdev_t;
|
||||
|
||||
typedef struct msg_pid {
|
||||
Index: xen-3.3.0-testing/tools/ioemu/hw/xen_blktap.c
|
||||
Index: xen-3.3.0-testing/tools/ioemu-remote/hw/xen_blktap.c
|
||||
===================================================================
|
||||
--- xen-3.3.0-testing.orig/tools/ioemu/hw/xen_blktap.c
|
||||
+++ xen-3.3.0-testing/tools/ioemu/hw/xen_blktap.c
|
||||
@@ -65,6 +65,8 @@ int write_fd;
|
||||
--- xen-3.3.0-testing.orig/tools/ioemu-remote/hw/xen_blktap.c
|
||||
+++ xen-3.3.0-testing/tools/ioemu-remote/hw/xen_blktap.c
|
||||
@@ -69,6 +69,8 @@ int write_fd;
|
||||
static pid_t process;
|
||||
fd_list_entry_t *fd_start = NULL;
|
||||
|
||||
@@ -35,7 +35,7 @@ Index: xen-3.3.0-testing/tools/ioemu/hw/xen_blktap.c
|
||||
static void handle_blktap_iomsg(void* private);
|
||||
|
||||
struct aiocb_info {
|
||||
@@ -497,6 +499,10 @@ static void handle_blktap_ctrlmsg(void*
|
||||
@@ -502,6 +504,10 @@ static void handle_blktap_ctrlmsg(void*
|
||||
|
||||
char buf[MSG_SIZE];
|
||||
|
||||
@@ -46,7 +46,7 @@ Index: xen-3.3.0-testing/tools/ioemu/hw/xen_blktap.c
|
||||
length = read(read_fd, buf, MSG_SIZE);
|
||||
|
||||
if (length > 0 && length >= sizeof(msg_hdr_t))
|
||||
@@ -552,7 +558,18 @@ static void handle_blktap_ctrlmsg(void*
|
||||
@@ -557,7 +563,18 @@ static void handle_blktap_ctrlmsg(void*
|
||||
if (s != NULL) {
|
||||
ret = ((map_new_dev(s, msg_dev->devnum)
|
||||
== msg_dev->devnum ? 0: -1));
|
||||
@@ -66,23 +66,11 @@ Index: xen-3.3.0-testing/tools/ioemu/hw/xen_blktap.c
|
||||
|
||||
memset(buf, 0x00, MSG_SIZE);
|
||||
msglen = sizeof(msg_hdr_t);
|
||||
Index: xen-3.3.0-testing/tools/ioemu/vl.c
|
||||
Index: xen-3.3.0-testing/tools/ioemu-remote/xenstore.c
|
||||
===================================================================
|
||||
--- xen-3.3.0-testing.orig/tools/ioemu/vl.c
|
||||
+++ xen-3.3.0-testing/tools/ioemu/vl.c
|
||||
@@ -5233,7 +5233,6 @@ the_end:
|
||||
return ret;
|
||||
}
|
||||
|
||||
-
|
||||
#else
|
||||
void do_savevm(const char *name)
|
||||
{
|
||||
Index: xen-3.3.0-testing/tools/ioemu/xenstore.c
|
||||
===================================================================
|
||||
--- xen-3.3.0-testing.orig/tools/ioemu/xenstore.c
|
||||
+++ xen-3.3.0-testing/tools/ioemu/xenstore.c
|
||||
@@ -26,6 +26,8 @@ static QEMUTimer *insert_timer = NULL;
|
||||
--- xen-3.3.0-testing.orig/tools/ioemu-remote/xenstore.c
|
||||
+++ xen-3.3.0-testing/tools/ioemu-remote/xenstore.c
|
||||
@@ -37,6 +37,8 @@ static QEMUTimer *insert_timer = NULL;
|
||||
#define UWAIT_MAX (30*1000000) /* thirty seconds */
|
||||
#define UWAIT (100000) /* 1/10th second */
|
||||
|
||||
@@ -91,10 +79,10 @@ Index: xen-3.3.0-testing/tools/ioemu/xenstore.c
|
||||
static int pasprintf(char **buf, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
@@ -311,8 +313,17 @@ void xenstore_parse_domain_config(int hv
|
||||
}
|
||||
@@ -373,8 +375,17 @@ void xenstore_parse_domain_config(int hv
|
||||
}
|
||||
}
|
||||
pstrcpy(bs->filename, sizeof(bs->filename), params);
|
||||
- if (bdrv_open2(bs, params, 0 /* snapshot */, format) < 0)
|
||||
+ if (bdrv_open2(bs, params, 0 /* snapshot */, format) < 0) {
|
||||
fprintf(stderr, "qemu: could not open vbd '%s' or hard disk image '%s' (drv '%s' format '%s')\n", buf, params, drv ? drv : "?", format ? format->format_name : "0");
|
||||
@@ -108,9 +96,9 @@ Index: xen-3.3.0-testing/tools/ioemu/xenstore.c
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -406,6 +417,23 @@ void xenstore_parse_domain_config(int hv
|
||||
drives_table[nb_drives].bdrv = bs;
|
||||
@@ -471,6 +482,23 @@ void xenstore_parse_domain_config(int hv
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user