1. 01 3月, 2015 7 次提交
  2. 26 2月, 2015 21 次提交
  3. 27 1月, 2015 2 次提交
  4. 08 1月, 2015 1 次提交
  5. 10 12月, 2014 2 次提交
  6. 25 11月, 2014 2 次提交
  7. 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
    • S
      acpi: create separate file for TCPA log · 42a5b308
      Stefan Berger 提交于
      Create the TCPA log in a separate file rather than allocating
      ACPI table memory for it.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      42a5b308
  8. 15 10月, 2014 1 次提交
  9. 03 9月, 2014 1 次提交
    • Z
      acpi-build: Set FORCE_APIC_CLUSTER_MODEL bit for FADT flags · 07b81ed9
      zhanghailiang 提交于
      If we start Windows 2008 R2 DataCenter with number of cpu less than 8,
      The system will use APIC Flat Logical destination mode as default configuration,
      Which has an upper limit of 8 CPUs.
      
      The fault is that VM can not show all processors within Task Manager if
      we hot-add cpus when the number of cpus in VM extends the limit of 8.
      
      If we use cluster destination model, the problem will be solved.
      
      Note:
      This flag was introduced later than ACPI v1.0 specification while QEMU
      generates v1.0 tables only, but...
      
      linux kernel ignores this flag, so patch has no influence on it.
      
      Tested with Win[XPsp3|Srv2003EE|Srv2008DC|Srv2008R2|Srv2012R2], there
      isn't BSODs and guests boot just fine. In cases guest doesn't support
      cpu-hotplug, cpu becomes visible after reboot and in case the guest
      supports cpu-hotplug, it works as expected with this patch.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: Nhuangzhichao <huangzhichao@huawei.com>
      Signed-off-by: Nzhanghailiang <zhang.zhanghailiang@huawei.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-By: NIgor Mammedov <imammedo@redhat.com>
      07b81ed9
  10. 29 8月, 2014 1 次提交