qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 0aa098: translate-all: fix compiler warning a


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 0aa098: translate-all: fix compiler warning and linked err...
Date: Mon, 22 Apr 2013 08:30:12 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 0aa09897571c55292703b7a099d7ea79baa09950
      
https://github.com/qemu/qemu/commit/0aa09897571c55292703b7a099d7ea79baa09950
  Author: Alexey Kardashevskiy <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M translate-all.c

  Log Message:
  -----------
  translate-all: fix compiler warning and linked error

The code did use profile_getclock() but did not include
include/qemu/timer.h where this function is defined. The patch fixes this.

Signed-off-by: Alexey Kardashevskiy <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 910b63682ea72f34307b8797c4cc81a1f2a0c47f
      
https://github.com/qemu/qemu/commit/910b63682ea72f34307b8797c4cc81a1f2a0c47f
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  qemu-char: use consistent idiom for removing sources

Always check that the source is active, and zero the tag afterwards.

The occurrence in pty_chr_state will trigger with the next patch, the
others are just theoretical.

Signed-off-by: Paolo Bonzini <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 85a67692d04e15a6b7d5a0e2b9d573d8bffbe108
      
https://github.com/qemu/qemu/commit/85a67692d04e15a6b7d5a0e2b9d573d8bffbe108
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  qemu-char: simplify pty polling

There is no need to use a timer and pty_chr_read to detect a connected
pty.  It is simpler to just call g_poll periodically and check for POLLHUP.
It is done once per second, and only if the pty is disconnected, so it
is cheap enough.

Tested with "-monitor pty" and "-serial mon:pty", both of which work
correctly and do not freeze QEMU.  (How to test ptys?  "socat -,raw,echo=0
/dev/pts/4,raw").

Signed-off-by: Paolo Bonzini <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa
      
https://github.com/qemu/qemu/commit/cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  qemu-char: correct return value from chr_read functions

Even if a CharDriverState's source is blocked by the front-end,
it must not be dropped. The IOWatchPoll that wraps it will take
care of adding and removing it to the main loop.  Only remove
the source when the channel is closed; and in that case, make sure
that the wrapping IOWatchPoll is removed too.

These should just be theoretical bugs.

Signed-off-by: Paolo Bonzini <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 2b316774f60291f57ca9ecb6a9f0712c532cae34
      
https://github.com/qemu/qemu/commit/2b316774f60291f57ca9ecb6a9f0712c532cae34
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M qemu-char.c

  Log Message:
  -----------
  qemu-char: do not operate on sources from finalize callbacks

Due to a glib bug, the finalize callback is called with the GMainContext
lock held.  Thus, any operation on the context from the callback will
cause recursive locking and a deadlock.  This happens, for example,
when a client disconnects from a socket chardev.

The fix for this is somewhat ugly, because we need to forego polymorphism
and implement our own function to destroy IOWatchPoll sources.  The
right thing to do here would be child sources, but we support older
glib versions that do not have them.  Not coincidentially, glib developers
found and fixed the deadlock as part of implementing child sources.

Signed-off-by: Paolo Bonzini <address@hidden>
Tested-by: Sander Eikelenboom <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 888a6bc63c94ef34026399117ebf6a1fa0e7a29a
      
https://github.com/qemu/qemu/commit/888a6bc63c94ef34026399117ebf6a1fa0e7a29a
  Author: Satoru Moriya <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M include/sysemu/os-posix.h
    M include/sysemu/os-win32.h
    M os-posix.c
    M qemu-options.hx
    M vl.c

  Log Message:
  -----------
  Add option to mlock qemu and guest memory

In certain scenario, latency induced by paging is significant and
memory locking is needed. Also, in the scenario with untrusted
guests, latency improvement due to mlock is desired.

This patch introduces a following new option to mlock guest and
qemu memory:

-realtime mlock=on|off

Signed-off-by: Satoru Moriya <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Reviewed-by: Marcelo Tosatti <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 56863d4f19c854acc5ebf5f5c1b590eb8164851a
      
https://github.com/qemu/qemu/commit/56863d4f19c854acc5ebf5f5c1b590eb8164851a
  Author: Peter Maydell <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M qtest.c

  Log Message:
  -----------
  qtest: Handle addresses and values for {in, out}[bwl] as unsigned

Handle the addresses and values for {in,out}[bwl] as unsigned (ie
with strtoul), as per the protocol specification comment. This fixes
a test failure in test_i440fx_defaults on 32-bit hosts where the test
tries to write 0x80000000 and qtest was instead writing 0x7fffffff.

Signed-off-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 8e36d6ca34243fdc9f48f4bdbe5fca2b19162bfa
      
https://github.com/qemu/qemu/commit/8e36d6ca34243fdc9f48f4bdbe5fca2b19162bfa
  Author: Stefan Berger <address@hidden>
  Date:   2013-04-22 (Mon, 22 Apr 2013)

  Changed paths:
    M hw/tpm/tpm_passthrough.c

  Log Message:
  -----------
  tpm: Simplify creation of cancel path

Simplify the creation of the cancel path given the TPM's device path.
Given the path /dev/tpm0 build the path /sys/class/misc/tpm0/device/cancel.

Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


Compare: https://github.com/qemu/qemu/compare/f1ab7a5acf08...8e36d6ca3424

reply via email to

[Prev in Thread] Current Thread [Next in Thread]