* [Qemu-devel] [PULL 0/2] QMP queue
@ 2013-04-19 12:50 Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 1/2] monitor: fix the wrong order of releasing keys Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 2/2] virtio-balloon: fix integer overflow in BALLOON_CHANGE QMP event Luiz Capitulino
0 siblings, 2 replies; 12+ messages in thread
From: Luiz Capitulino @ 2013-04-19 12:50 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
Two important fixes.
The changes (since 09dada400328d75daf79e3eca1e48e024fec148d) are available
in the following repository:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
Amos Kong (1):
monitor: fix the wrong order of releasing keys
Luiz Capitulino (1):
virtio-balloon: fix integer overflow in BALLOON_CHANGE QMP event
hw/virtio/virtio-balloon.c | 2 +-
ui/input.c | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
--
1.8.1.4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 1/2] monitor: fix the wrong order of releasing keys
2013-04-19 12:50 [Qemu-devel] [PULL 0/2] QMP queue Luiz Capitulino
@ 2013-04-19 12:50 ` Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 2/2] virtio-balloon: fix integer overflow in BALLOON_CHANGE QMP event Luiz Capitulino
1 sibling, 0 replies; 12+ messages in thread
From: Luiz Capitulino @ 2013-04-19 12:50 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
From: Amos Kong <akong@redhat.com>
(qemu) sendkey ctrl_r-scroll_lock-scroll_lock
Executing this command could not let Windows guest panic, it caused by
the wrong order of releasing keys. This problem was introduced by
commit e4c8f004c55d9da3eae3e14df740238bf805b5d6.
The right release order should be starting from last item.
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
ui/input.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/ui/input.c b/ui/input.c
index 9abef0c..ecfeb43 100644
--- a/ui/input.c
+++ b/ui/input.c
@@ -234,13 +234,11 @@ static void free_keycodes(void)
static void release_keys(void *opaque)
{
- int i;
-
- for (i = 0; i < keycodes_size; i++) {
- if (keycodes[i] & 0x80) {
+ while (keycodes_size > 0) {
+ if (keycodes[--keycodes_size] & 0x80) {
kbd_put_keycode(0xe0);
}
- kbd_put_keycode(keycodes[i]| 0x80);
+ kbd_put_keycode(keycodes[keycodes_size] | 0x80);
}
free_keycodes();
--
1.8.1.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 2/2] virtio-balloon: fix integer overflow in BALLOON_CHANGE QMP event
2013-04-19 12:50 [Qemu-devel] [PULL 0/2] QMP queue Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 1/2] monitor: fix the wrong order of releasing keys Luiz Capitulino
@ 2013-04-19 12:50 ` Luiz Capitulino
1 sibling, 0 replies; 12+ messages in thread
From: Luiz Capitulino @ 2013-04-19 12:50 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
Because dev->actual is uint32_t, the expression 'dev->actual <<
VIRTIO_BALLOON_PFN_SHIFT' is truncated to 32 bits. This overflows when
dev->actual >= 1048576.
To reproduce:
1. Start a VM with a QMP socket and 5G of RAM
2. Connect to the QMP socket, negotiate capabilities and issue:
{ "execute":"balloon", "arguments": { "value": 1073741824 } }
3. Watch for BALLOON_CHANGE QMP events, the last one will incorretly be:
{ "timestamp": { "seconds": 1366228965, "microseconds": 245466 },
"event": "BALLOON_CHANGE", "data": { "actual": 5368709120 } }
To fix it this commit casts it to ram_addr_t, which is ram_size's type.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
hw/virtio/virtio-balloon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c
index c2c446e..76e32ce 100644
--- a/hw/virtio/virtio-balloon.c
+++ b/hw/virtio/virtio-balloon.c
@@ -275,7 +275,7 @@ static void virtio_balloon_set_config(VirtIODevice *vdev,
dev->actual = le32_to_cpu(config.actual);
if (dev->actual != oldactual) {
qemu_balloon_changed(ram_size -
- (dev->actual << VIRTIO_BALLOON_PFN_SHIFT));
+ ((ram_addr_t) dev->actual << VIRTIO_BALLOON_PFN_SHIFT));
}
}
--
1.8.1.4
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 0/2] QMP queue
@ 2014-09-12 20:26 Luiz Capitulino
2014-09-15 19:40 ` Peter Maydell
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Capitulino @ 2014-09-12 20:26 UTC (permalink / raw)
To: peter.maydell; +Cc: qemu-devel, anthony
Two trivial fixes.
The following changes since commit 6cd14054b67774cc58a51fca6660cfa1d3c08059:
libqos virtio: Increase ISR timeout (2014-09-12 13:58:07 +0100)
are available in the git repository at:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
for you to fetch changes up to e4d9df4fb16861f413374b69fcdb12c8c7a4a17e:
exec: file_ram_alloc(): print error when prealloc fails (2014-09-12 11:22:21 -0400)
----------------------------------------------------------------
Gonglei (1):
monitor: fix debug print compiling error
Luiz Capitulino (1):
exec: file_ram_alloc(): print error when prealloc fails
exec.c | 1 +
monitor.c | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PULL 0/2] QMP queue
2014-09-12 20:26 [Qemu-devel] [PULL 0/2] QMP queue Luiz Capitulino
@ 2014-09-15 19:40 ` Peter Maydell
0 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2014-09-15 19:40 UTC (permalink / raw)
To: Luiz Capitulino; +Cc: QEMU Developers, Anthony Liguori
On 12 September 2014 13:26, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> Two trivial fixes.
>
> The following changes since commit 6cd14054b67774cc58a51fca6660cfa1d3c08059:
>
> libqos virtio: Increase ISR timeout (2014-09-12 13:58:07 +0100)
>
> are available in the git repository at:
>
> git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
>
> for you to fetch changes up to e4d9df4fb16861f413374b69fcdb12c8c7a4a17e:
>
> exec: file_ram_alloc(): print error when prealloc fails (2014-09-12 11:22:21 -0400)
>
> ----------------------------------------------------------------
> Gonglei (1):
> monitor: fix debug print compiling error
>
> Luiz Capitulino (1):
> exec: file_ram_alloc(): print error when prealloc fails
>
> exec.c | 1 +
> monitor.c | 7 +++++--
> 2 files changed, 6 insertions(+), 2 deletions(-)
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 0/2] QMP queue
@ 2013-12-20 16:38 Luiz Capitulino
2014-01-06 19:17 ` Luiz Capitulino
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Capitulino @ 2013-12-20 16:38 UTC (permalink / raw)
To: anthony; +Cc: qemu-devel
I've dropped the two series which need to be respun. As the fix I have from
Paolo is pending for a long time, I figure it's better to send what I have
in the queue now.
The following changes since commit f8251db121c3f051b22a7536b97d160c30bcccd4:
Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream' into staging (2013-12-19 17:03:17 -0800)
are available in the git repository at:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
for you to fetch changes up to 15e509df38e2ae88dd045cdce62edacd033c8386:
qemu-monitor: HMP cpu-add wrapper (2013-12-20 08:32:26 -0500)
----------------------------------------------------------------
Jason J. Herne (1):
qemu-monitor: HMP cpu-add wrapper
Paolo Bonzini (1):
vl: add missing transition debug->finish_migrate
hmp-commands.hx | 13 +++++++++++++
hmp.c | 10 ++++++++++
hmp.h | 1 +
vl.c | 1 +
4 files changed, 25 insertions(+)
--
1.8.1.4
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PULL 0/2] QMP queue
2013-12-20 16:38 Luiz Capitulino
@ 2014-01-06 19:17 ` Luiz Capitulino
0 siblings, 0 replies; 12+ messages in thread
From: Luiz Capitulino @ 2014-01-06 19:17 UTC (permalink / raw)
To: anthony; +Cc: qemu-devel
On Fri, 20 Dec 2013 11:38:54 -0500
Luiz Capitulino <lcapitulino@redhat.com> wrote:
> I've dropped the two series which need to be respun. As the fix I have from
> Paolo is pending for a long time, I figure it's better to send what I have
> in the queue now.
Please, don't pull this one. I'm working on a more complete pull request,
will send it in some minutes.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 0/2] QMP queue
@ 2013-07-17 20:41 Luiz Capitulino
0 siblings, 0 replies; 12+ messages in thread
From: Luiz Capitulino @ 2013-07-17 20:41 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
The following changes since commit 6453a3a69488196f26d12654c6b148446abdf3d6:
Merge remote-tracking branch 'quintela/migration.next' into staging (2013-07-15 14:49:16 -0500)
are available in the git repository at:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
for you to fetch changes up to f9b1d9b20f5d25b95f67a498e312f625d168fc51:
qmp: update send-key document (2013-07-17 16:00:26 -0400)
----------------------------------------------------------------
Amos Kong (1):
qmp: update send-key document
Luiz Capitulino (1):
qapi: qapi-commands: fix possible leaks on visitor dealloc
qmp-commands.hx | 7 +++++--
scripts/qapi-commands.py | 17 ++++++++++-------
2 files changed, 15 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 0/2] QMP queue
@ 2013-01-10 17:47 Luiz Capitulino
2013-01-14 18:04 ` Anthony Liguori
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Capitulino @ 2013-01-10 17:47 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
The changes (since 7cd5da7eef152a533c5774effd2e7bbfa5976c86) are available
in the following repository:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
Markus Armbruster (1):
monitor: assert monitor_puts()'s loop invariant
Wen Congyang (1):
target-i386: fix bits 39:32 of the final physical address when using
4M page
monitor.c | 1 +
target-i386/arch_memory_mapping.c | 11 ++++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
--
1.8.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PULL 0/2]: QMP queue
@ 2011-09-06 16:44 Luiz Capitulino
2011-09-08 14:24 ` Anthony Liguori
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Capitulino @ 2011-09-06 16:44 UTC (permalink / raw)
To: aliguori; +Cc: qemu-devel
Anthony,
The following patches have been sent to the list and look good to me. I've
also tested them.
The changes (since 344eecf6995f4a0ad1d887cec922f6806f91a3f8) are available
in the following repository:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
Jan Kiszka (1):
Fix qjson test of solidus encoding
Luiz Capitulino (1):
configure: Copy test data to build directory
check-qjson.c | 3 ++-
configure | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PULL 0/2]: QMP queue
2011-09-06 16:44 [Qemu-devel] [PULL 0/2]: " Luiz Capitulino
@ 2011-09-08 14:24 ` Anthony Liguori
0 siblings, 0 replies; 12+ messages in thread
From: Anthony Liguori @ 2011-09-08 14:24 UTC (permalink / raw)
To: Luiz Capitulino; +Cc: qemu-devel
On 09/06/2011 11:44 AM, Luiz Capitulino wrote:
> Anthony,
>
> The following patches have been sent to the list and look good to me. I've
> also tested them.
Pulled. Thanks.
Regards,
Anthony Liguori
>
> The changes (since 344eecf6995f4a0ad1d887cec922f6806f91a3f8) are available
> in the following repository:
>
> git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
>
> Jan Kiszka (1):
> Fix qjson test of solidus encoding
>
> Luiz Capitulino (1):
> configure: Copy test data to build directory
>
> check-qjson.c | 3 ++-
> configure | 2 +-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-09-15 19:40 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 12:50 [Qemu-devel] [PULL 0/2] QMP queue Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 1/2] monitor: fix the wrong order of releasing keys Luiz Capitulino
2013-04-19 12:50 ` [Qemu-devel] [PULL 2/2] virtio-balloon: fix integer overflow in BALLOON_CHANGE QMP event Luiz Capitulino
-- strict thread matches above, loose matches on Subject: below --
2014-09-12 20:26 [Qemu-devel] [PULL 0/2] QMP queue Luiz Capitulino
2014-09-15 19:40 ` Peter Maydell
2013-12-20 16:38 Luiz Capitulino
2014-01-06 19:17 ` Luiz Capitulino
2013-07-17 20:41 Luiz Capitulino
2013-01-10 17:47 Luiz Capitulino
2013-01-14 18:04 ` Anthony Liguori
2011-09-06 16:44 [Qemu-devel] [PULL 0/2]: " Luiz Capitulino
2011-09-08 14:24 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).