1. 15 8月, 2018 21 次提交
  2. 14 8月, 2018 1 次提交
  3. 08 8月, 2018 1 次提交
  4. 07 8月, 2018 3 次提交
  5. 06 8月, 2018 8 次提交
  6. 03 8月, 2018 5 次提交
    • M
      tests/acpi: update tables after memory hotplug changes · 1c707d69
      Michael S. Tsirkin 提交于
      Previous patch changes acpi tables, update expected
      files accordingly.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      1c707d69
    • I
      pc: acpi: fix memory hotplug regression by reducing stub SRAT entry size · 10efd7e1
      Igor Mammedov 提交于
      Commit 848a1cc1 (hw/acpi-build: build SRAT memory affinity structures for DIMM devices)
      broke the first dimm hotplug in following cases:
      
       1: there is no coldplugged dimm in the last numa node
          but there is a coldplugged dimm in another node
      
        -m 4096,slots=4,maxmem=32G               \
        -object memory-backend-ram,id=m0,size=2G \
        -device pc-dimm,memdev=m0,node=0         \
        -numa node,nodeid=0                      \
        -numa node,nodeid=1
      
       2: if order of dimms on CLI is:
             1st plugged dimm in node1
             2nd plugged dimm in node0
      
        -m 4096,slots=4,maxmem=32G               \
        -object memory-backend-ram,size=2G,id=m0 \
        -device pc-dimm,memdev=m0,node=1         \
        -object memory-backend-ram,id=m1,size=2G \
        -device pc-dimm,memdev=m1,node=0         \
        -numa node,nodeid=0                      \
        -numa node,nodeid=1
      
      (qemu) object_add memory-backend-ram,id=m2,size=1G
      (qemu) device_add pc-dimm,memdev=m2,node=0
      
      the first DIMM hotplug to any node except the last one
      fails (Windows is unable to online it).
      
      Length reduction of stub hotplug memory SRAT entry,
      fixes issue for some reason.
      
      RHBZ: 1609234
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      10efd7e1
    • D
      tests/acpi-test: update ACPI tables test blobs · 16e2841d
      Dou Liyang 提交于
      Now, QEmu adds a new check for memory-less NUMA nodes in build_srat().
      
      It effects the ACPI test.
      
      So, Update ACPI tables test blobs.
      Signed-off-by: NDou Liyang <douly.fnst@cn.fujitsu.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      16e2841d
    • D
      hw/acpi-build: Add a check for memory-less NUMA nodes · 16b42263
      Dou Liyang 提交于
      Currently, Qemu ACPI builder doesn't consider the memory-less NUMA nodes, eg:
      
        -m 4G,slots=4,maxmem=8G \
        -numa node,nodeid=0 \
        -numa node,nodeid=1,mem=2G \
        -numa node,nodeid=2,mem=2G \
        -numa node,nodeid=3\
      
      Guest Linux will report
      
        [    0.000000] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0xffffffffffffffff]
        [    0.000000] ACPI: SRAT: Node 1 PXM 1 [mem 0x00000000-0x0009ffff]
        [    0.000000] ACPI: SRAT: Node 1 PXM 1 [mem 0x00100000-0x7fffffff]
        [    0.000000] ACPI: SRAT: Node 2 PXM 2 [mem 0x80000000-0xbfffffff]
        [    0.000000] ACPI: SRAT: Node 2 PXM 2 [mem 0x100000000-0x13fffffff]
        [    0.000000] ACPI: SRAT: Node 3 PXM 3 [mem 0x140000000-0x13fffffff]
        [    0.000000] ACPI: SRAT: Node 3 PXM 3 [mem 0x140000000-0x33fffffff] hotplug
      
      [mem 0x00000000-0xffffffffffffffff] and [mem 0x140000000-0x13fffffff] are bogus.
      
      Add a check to avoid building srat memory for memory-less NUMA nodes, also update
      the test file. Now the info in guest linux will be
      
        [    0.000000] ACPI: SRAT: Node 1 PXM 1 [mem 0x00000000-0x0009ffff]
        [    0.000000] ACPI: SRAT: Node 1 PXM 1 [mem 0x00100000-0x7fffffff]
        [    0.000000] ACPI: SRAT: Node 2 PXM 2 [mem 0x80000000-0xbfffffff]
        [    0.000000] ACPI: SRAT: Node 2 PXM 2 [mem 0x100000000-0x13fffffff]
        [    0.000000] ACPI: SRAT: Node 3 PXM 3 [mem 0x140000000-0x33fffffff] hotplug
      Signed-off-by: NDou Liyang <douly.fnst@cn.fujitsu.com>
      Reviewed-by: NIgor Mammedov <imammedo@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      16b42263
    • T
      vhost: check region type before casting · 388a86df
      Tiwei Bie 提交于
      Check region type first before casting the memory region
      to IOMMUMemoryRegion. Otherwise QEMU will abort with below
      error message when casting non-IOMMU memory region:
      
      vhost_iommu_region_add: Object 0x561f28bce4f0 is not an
      instance of type qemu:iommu-memory-region
      
      Fixes: cb1efcf4 ("iommu: Add IOMMU index argument to notifier APIs")
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NTiwei Bie <tiwei.bie@intel.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      388a86df
  7. 01 8月, 2018 1 次提交