1 | The following changes since commit 64175afc695c0672876fbbfc31b299c86d562cb4: | 1 | The following changes since commit 58560ad254fbda71d4daa6622d71683190070ee2: |
---|---|---|---|
2 | 2 | ||
3 | arm_gicv3: Fix ICC_BPR1 reset value when EL3 not implemented (2017-06-07 17:21:44 +0100) | 3 | Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.2-20191024' into staging (2019-10-24 16:22:58 +0100) |
4 | 4 | ||
5 | are available in the git repository at: | 5 | are available in the Git repository at: |
6 | 6 | ||
7 | git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request | 7 | https://github.com/stefanha/qemu.git tags/block-pull-request |
8 | 8 | ||
9 | for you to fetch changes up to 56faeb9bb6872b3f926b3b3e0452a70beea10af2: | 9 | for you to fetch changes up to d154ef37ff885918fa3e512fd7a8e42870291667: |
10 | 10 | ||
11 | block/gluster.c: Handle qdict_array_entries() failure (2017-06-09 08:41:29 -0400) | 11 | yield_until_fd_readable: make it work with any AioContect (2019-10-25 14:38:29 +0200) |
12 | 12 | ||
13 | ---------------------------------------------------------------- | 13 | ---------------------------------------------------------------- |
14 | Gluster patch | 14 | Pull request |
15 | |||
15 | ---------------------------------------------------------------- | 16 | ---------------------------------------------------------------- |
16 | 17 | ||
17 | Peter Maydell (1): | 18 | Dietmar Maurer (1): |
18 | block/gluster.c: Handle qdict_array_entries() failure | 19 | yield_until_fd_readable: make it work with any AioContect |
19 | 20 | ||
20 | block/gluster.c | 3 +-- | 21 | Julia Suvorova (1): |
21 | 1 file changed, 1 insertion(+), 2 deletions(-) | 22 | virtio-blk: Add blk_drain() to virtio_blk_device_unrealize() |
23 | |||
24 | hw/block/virtio-blk.c | 1 + | ||
25 | util/qemu-coroutine-io.c | 7 +++++-- | ||
26 | 2 files changed, 6 insertions(+), 2 deletions(-) | ||
22 | 27 | ||
23 | -- | 28 | -- |
24 | 2.9.3 | 29 | 2.21.0 |
25 | 30 | ||
26 | 31 | diff view generated by jsdifflib |
New patch | |||
---|---|---|---|
1 | From: Julia Suvorova <jusual@redhat.com> | ||
1 | 2 | ||
3 | QEMU does not wait for completed I/O requests, assuming that the guest | ||
4 | driver will reset the device before calling unrealize(). This does not | ||
5 | happen on Windows, and QEMU crashes in virtio_notify(), getting the | ||
6 | result of a completed I/O request on hot-unplugged device. | ||
7 | |||
8 | Signed-off-by: Julia Suvorova <jusual@redhat.com> | ||
9 | Message-Id: <20191018142856.31870-1-jusual@redhat.com> | ||
10 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
11 | --- | ||
12 | hw/block/virtio-blk.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c | ||
16 | index XXXXXXX..XXXXXXX 100644 | ||
17 | --- a/hw/block/virtio-blk.c | ||
18 | +++ b/hw/block/virtio-blk.c | ||
19 | @@ -XXX,XX +XXX,XX @@ static void virtio_blk_device_unrealize(DeviceState *dev, Error **errp) | ||
20 | VirtIODevice *vdev = VIRTIO_DEVICE(dev); | ||
21 | VirtIOBlock *s = VIRTIO_BLK(dev); | ||
22 | |||
23 | + blk_drain(s->blk); | ||
24 | virtio_blk_data_plane_destroy(s->dataplane); | ||
25 | s->dataplane = NULL; | ||
26 | qemu_del_vm_change_state_handler(s->change); | ||
27 | -- | ||
28 | 2.21.0 | ||
29 | |||
30 | diff view generated by jsdifflib |
1 | From: Peter Maydell <peter.maydell@linaro.org> | 1 | From: Dietmar Maurer <dietmar@proxmox.com> |
---|---|---|---|
2 | 2 | ||
3 | In qemu_gluster_parse_json(), the call to qdict_array_entries() | 3 | Simply use qemu_get_current_aio_context(). |
4 | could return a negative error code, which we were ignoring | ||
5 | because we assigned the result to an unsigned variable. | ||
6 | Fix this by using the 'int' type instead, which matches the | ||
7 | return type of qdict_array_entries() and also the type | ||
8 | we use for the loop enumeration variable 'i'. | ||
9 | 4 | ||
10 | (Spotted by Coverity, CID 1360960.) | 5 | Signed-off-by: Dietmar Maurer <dietmar@proxmox.com> |
6 | Message-Id: <20191024045610.9071-1-dietmar@proxmox.com> | ||
7 | Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> | ||
8 | --- | ||
9 | util/qemu-coroutine-io.c | 7 +++++-- | ||
10 | 1 file changed, 5 insertions(+), 2 deletions(-) | ||
11 | 11 | ||
12 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 12 | diff --git a/util/qemu-coroutine-io.c b/util/qemu-coroutine-io.c |
13 | Reviewed-by: Eric Blake <eblake@redhat.com> | ||
14 | Reviewed-by: Jeff Cody <jcody@redhat.com> | ||
15 | Message-id: 1496682098-1540-1-git-send-email-peter.maydell@linaro.org | ||
16 | Signed-off-by: Jeff Cody <jcody@redhat.com> | ||
17 | --- | ||
18 | block/gluster.c | 3 +-- | ||
19 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/block/gluster.c b/block/gluster.c | ||
22 | index XXXXXXX..XXXXXXX 100644 | 13 | index XXXXXXX..XXXXXXX 100644 |
23 | --- a/block/gluster.c | 14 | --- a/util/qemu-coroutine-io.c |
24 | +++ b/block/gluster.c | 15 | +++ b/util/qemu-coroutine-io.c |
25 | @@ -XXX,XX +XXX,XX @@ static int qemu_gluster_parse_json(BlockdevOptionsGluster *gconf, | 16 | @@ -XXX,XX +XXX,XX @@ qemu_co_send_recv(int sockfd, void *buf, size_t bytes, bool do_send) |
26 | Error *local_err = NULL; | 17 | } |
27 | char *str = NULL; | 18 | |
28 | const char *ptr; | 19 | typedef struct { |
29 | - size_t num_servers; | 20 | + AioContext *ctx; |
30 | - int i, type; | 21 | Coroutine *co; |
31 | + int i, type, num_servers; | 22 | int fd; |
32 | 23 | } FDYieldUntilData; | |
33 | /* create opts info from runtime_json_opts list */ | 24 | @@ -XXX,XX +XXX,XX @@ typedef struct { |
34 | opts = qemu_opts_create(&runtime_json_opts, NULL, 0, &error_abort); | 25 | static void fd_coroutine_enter(void *opaque) |
26 | { | ||
27 | FDYieldUntilData *data = opaque; | ||
28 | - qemu_set_fd_handler(data->fd, NULL, NULL, NULL); | ||
29 | + aio_set_fd_handler(data->ctx, data->fd, false, NULL, NULL, NULL, NULL); | ||
30 | qemu_coroutine_enter(data->co); | ||
31 | } | ||
32 | |||
33 | @@ -XXX,XX +XXX,XX @@ void coroutine_fn yield_until_fd_readable(int fd) | ||
34 | FDYieldUntilData data; | ||
35 | |||
36 | assert(qemu_in_coroutine()); | ||
37 | + data.ctx = qemu_get_current_aio_context(); | ||
38 | data.co = qemu_coroutine_self(); | ||
39 | data.fd = fd; | ||
40 | - qemu_set_fd_handler(fd, fd_coroutine_enter, NULL, &data); | ||
41 | + aio_set_fd_handler( | ||
42 | + data.ctx, fd, false, fd_coroutine_enter, NULL, NULL, &data); | ||
43 | qemu_coroutine_yield(); | ||
44 | } | ||
35 | -- | 45 | -- |
36 | 2.9.3 | 46 | 2.21.0 |
37 | 47 | ||
38 | 48 | diff view generated by jsdifflib |