[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 15/33] hw/acpi-build: Make next_base easy to follow
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 15/33] hw/acpi-build: Make next_base easy to follow |
Date: |
Tue, 16 Jan 2018 06:47:28 +0200 |
From: Dou Liyang <address@hidden>
It may be hard to read the assignment statement of "next_base", so
S/next_base += (1ULL << 32) - pcms->below_4g_mem_size;
/next_base = mem_base + mem_len;
... for readability.
No functionality change.
Signed-off-by: Dou Liyang <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
hw/i386/acpi-build.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 6f38fb9..dc4b2b9 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -2394,7 +2394,7 @@ build_srat(GArray *table_data, BIOSLinker *linker,
MachineState *machine)
}
mem_base = 1ULL << 32;
mem_len = next_base - pcms->below_4g_mem_size;
- next_base += (1ULL << 32) - pcms->below_4g_mem_size;
+ next_base = mem_base + mem_len;
}
numamem = acpi_data_push(table_data, sizeof *numamem);
build_srat_memory(numamem, mem_base, mem_len, i - 1,
--
MST
- [Qemu-devel] [PULL 07/33] virtio: postpone the execution of event_notifier_cleanup function, (continued)
- [Qemu-devel] [PULL 07/33] virtio: postpone the execution of event_notifier_cleanup function, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 08/33] virtio: improve virtio devices initialization time, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 06/33] qemu: add a cleanup callback function to EventNotifier, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 05/33] contrib/vhost-user-blk: introduce a vhost-user-blk sample application, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 09/33] pci/shpc: Move function to generic header file, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 10/33] vhost-user: fix multiple queue specification, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 11/33] intel-iommu: Redefine macros to enable supporting 48 bit address width, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 14/33] ACPI/unit-test: Add a testcase for RAM allocation in numa node, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 12/33] intel-iommu: Extend address width to 48 bits, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 13/33] hw/pci-bridge: fix QEMU crash because of pcie-root-port, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 15/33] hw/acpi-build: Make next_base easy to follow,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 16/33] vhost-user-test: fix features mask, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 17/33] vhost-user-test: extract read-guest-mem test from main loop, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 18/33] vhost-user-test: setup virtqueues in all tests, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 19/33] vhost-user-test: make features mask an init_virtio_dev() argument, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 20/33] vhost-user-test: use init_virtio_dev in multiqueue test, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 21/33] vhost: Build temporary section list and deref after commit, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 22/33] vhost: Move log_dirty check, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 24/33] vhost: Merge sections added to temporary list, Michael S. Tsirkin, 2018/01/15
- [Qemu-devel] [PULL 23/33] vhost: Simplify ring verification checks, Michael S. Tsirkin, 2018/01/15