1. 26 1月, 2015 1 次提交
  2. 09 1月, 2015 1 次提交
  3. 08 1月, 2015 1 次提交
  4. 07 1月, 2015 1 次提交
  5. 23 12月, 2014 2 次提交
  6. 22 12月, 2014 1 次提交
  7. 15 12月, 2014 9 次提交
  8. 10 12月, 2014 2 次提交
  9. 26 11月, 2014 1 次提交
  10. 25 11月, 2014 5 次提交
  11. 23 11月, 2014 4 次提交
  12. 14 11月, 2014 1 次提交
  13. 13 11月, 2014 3 次提交
  14. 04 11月, 2014 6 次提交
  15. 02 11月, 2014 2 次提交
    • N
      hw/i386/acpi-build.c: Fix memory leak in acpi_build_tables_cleanup() · ac369a77
      Nikita Belov 提交于
      There are three ACPI tables: 'linker_data', 'rsdp' and 'table_data'. They are
      used differently. Two of them are being copied before using and only the copy
      is used later. But the third is used directly. Because of that we need to free
      two tables completely and delete only wrapper for the third one.
      
      Valgrind output:
      ==23931== 131,072 bytes in 1 blocks are definitely lost in loss record 7,729 of 7,734
      ==23931==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==23931==    by 0x2EA920: realloc_and_trace (vl.c:2811)
      ==23931==    by 0x509E6AE: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x506DB32: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x506E463: g_array_set_size (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
      ==23931==    by 0x256A4F: acpi_align_size (acpi-build.c:487)
      ==23931==    by 0x259F92: acpi_build (acpi-build.c:1601)
      ==23931==    by 0x25A212: acpi_setup (acpi-build.c:1682)
      ==23931==    by 0x24F346: pc_guest_info_machine_done (pc.c:1110)
      ==23931==    by 0x55FAAB: notifier_list_notify (notify.c:39)
      ==23931==    by 0x2EA704: qemu_run_machine_init_done_notifiers (vl.c:2759)
      ==23931==    by 0x2EEC3C: main (vl.c:4504)
      Signed-off-by: NNikita Belov <zodiac@ispras.ru>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      ac369a77
    • E
      smbios: Encode UUID according to SMBIOS specification · caad057b
      Eduardo Habkost 提交于
      Differently from older versions, SMBIOS version 2.6 is explicit about
      the encoding of UUID fields:
      
      > Although RFC 4122 recommends network byte order for all fields, the PC
      > industry (including the ACPI, UEFI, and Microsoft specifications) has
      > consistently used little-endian byte encoding for the first three fields:
      > time_low, time_mid, time_hi_and_version. The same encoding, also known as
      > wire format, should also be used for the SMBIOS representation of the UUID.
      >
      > The UUID {00112233-4455-6677-8899-AABBCCDDEEFF} would thus be represented
      > as 33 22 11 00 55 44 77 66 88 99 AA BB CC DD EE FF.
      
      The dmidecode tool implements this and decodes the above "wire format"
      when SMBIOS version >= 2.6. We moved from SMBIOS version 2.4 to 2.8 when
      we started building the SMBIOS entry point inside QEMU, on commit
      c97294ec.
      
      Change smbios_build_type_1_table() to encode the UUID as specified.
      
      To make sure we won't change the guest-visible UUID when upgrading to a
      newer QEMU version, keep the old behavior on pc-*-2.1 and older.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      caad057b