1. 03 6月, 2015 1 次提交
    • S
      hw/i386/acpi-build: decref after use · d370dfa9
      Shannon Zhao 提交于
      valgrind complains about:
      ==16447== 48 bytes in 2 blocks are definitely lost in loss record 2,033 of 3,310
      ==16447==    at 0x4C2845D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==16447==    by 0x2E4FD7: malloc_and_trace (vl.c:2546)
      ==16447==    by 0x64C770E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3)
      ==16447==    by 0x53EC3F: qint_from_int (qint.c:33)
      ==16447==    by 0x53B426: qmp_output_type_int (qmp-output-visitor.c:162)
      ==16447==    by 0x539257: visit_type_uint32 (qapi-visit-core.c:147)
      ==16447==    by 0x471D07: property_get_uint32_ptr (object.c:1651)
      ==16447==    by 0x47000C: object_property_get (object.c:822)
      ==16447==    by 0x472428: object_property_get_qobject (qom-qobject.c:37)
      ==16447==    by 0x25701A: build_append_pci_bus_devices (acpi-build.c:520)
      ==16447==    by 0x25902E: build_ssdt (acpi-build.c:1004)
      ==16447==    by 0x25A0A8: acpi_build (acpi-build.c:1420)
      Signed-off-by: NShannon Zhao <zhaoshenglong@huawei.com>
      Signed-off-by: NShannon Zhao <shannon.zhao@linaro.org>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      d370dfa9
  2. 01 6月, 2015 1 次提交
  3. 31 5月, 2015 1 次提交
    • R
      pc: acpi: fix pvpanic for buggy guests · 2332333c
      Radim Krčmář 提交于
      In the old times, we always had pvpanic in ACPI and a _STA method told
      the guest not to use it.  Automatic generation dropped the _STA method
      as the specification says that missing _STA means enabled and working.
      Some guests (Linux) had buggy drivers and this change made them unable
      to utilize pvpanic.
      
      A Linux patch is posted as well, but I think it's worth to make pvpanic
      useable on old guests at the price of three lines and few bytes of SSDT.
      
      The old _STA method was
        Method (_STA, 0, NotSerialized) {
            Store (PEST, Local0)
            If (LEqual (Local0, Zero)) {
                Return (Zero) }
            Else {
                Return (0x0F) }}
      
      Igor pointed out that we don't need to use a method to return a constant
      and that 0xB (don't show in UI) is the common definition now.
      
      Also, the device used to be PEVT.  (PEVT as in "panic event"?)
      Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      2332333c
  4. 29 5月, 2015 2 次提交
  5. 30 4月, 2015 1 次提交
  6. 28 4月, 2015 8 次提交
  7. 01 4月, 2015 1 次提交
  8. 08 3月, 2015 2 次提交
  9. 01 3月, 2015 9 次提交
  10. 26 2月, 2015 14 次提交