Message ID | 1533815202-11967-7-git-send-email-liran.alon@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | : vmsvga: Various fixes and enhancements | expand |
Hi, > + if (cmd == SVGA_CMD_UPDATE_VERBOSE) > + vmsvga_fifo_read(s); Code style. qemu wants braces unconditionally. There might be more of this in following patches. You can use scripts/checkpatch.pl to check. cheers, Gerd
> On 10 Aug 2018, at 13:00, Gerd Hoffmann <kraxel@redhat.com> wrote: > > Hi, > >> + if (cmd == SVGA_CMD_UPDATE_VERBOSE) >> + vmsvga_fifo_read(s); > > Code style. qemu wants braces unconditionally. There might be more of > this in following patches. You can use scripts/checkpatch.pl to check. > > cheers, > Gerd > Oops. Will fix for v2 of patch series. Thanks, -Liran
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c index 2fbb9e7f6c9f..d3a78809673d 100644 --- a/hw/display/vmware_vga.c +++ b/hw/display/vmware_vga.c @@ -611,8 +611,11 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) switch (cmd = vmsvga_fifo_read(s)) { /* Implemented commands */ - case SVGA_CMD_UPDATE: case SVGA_CMD_UPDATE_VERBOSE: + /* One extra word: an opaque cookie which is used for debugging */ + len -= 1; + /* fall through */ + case SVGA_CMD_UPDATE: len -= 5; if (len < 0) { goto rewind; @@ -622,6 +625,8 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s) y = vmsvga_fifo_read(s); width = vmsvga_fifo_read(s); height = vmsvga_fifo_read(s); + if (cmd == SVGA_CMD_UPDATE_VERBOSE) + vmsvga_fifo_read(s); vmsvga_update_rect_delayed(s, x, y, width, height); break;