[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 0/6] machine: smp parsing fixes and improvement
From: |
Yanan Wang |
Subject: |
[RFC PATCH 0/6] machine: smp parsing fixes and improvement |
Date: |
Fri, 2 Jul 2021 18:07:33 +0800 |
Hello,
Here are some smp parsing fix and improvement, most of which is about
the smp parsing helpers. This series was arranged based on the latest
QEMU code since commit d940d468e29b.
Description:
Patch #1 improves the calculation of maxcpus.
Patch #2 and #3 adds the missing zero-check for values of sockets and dies.
Patch #4 allows us to uniformly use maxcpus for all calculations.
Patch #5 reject the configuration of dies more strictly for non-PC machines.
Patch #6 makes no functional change but tweaks the order of topology parameters.
Regards,
Yanan
Yanan Wang (6):
machine: Set the value of maxcpus to match cpus if specified as zero
machine: Perform zero-check for the computed value of sockets
pc/machine: Perform zero-check for the value of -smp dies
machine: Uniformly use maxcpus to calculate the missing values
pc/machine: Disallow any configuration of dies for non-PC machines
machine: Tweak the order of topology members in struct CpuTopology
hw/core/machine.c | 49 +++++++++++++++++++++++++--------------------
hw/i386/pc.c | 48 +++++++++++++++++++++++++-------------------
include/hw/boards.h | 7 ++++---
qapi/machine.json | 2 +-
4 files changed, 59 insertions(+), 47 deletions(-)
--
2.19.1
- [RFC PATCH 0/6] machine: smp parsing fixes and improvement,
Yanan Wang <=
[RFC PATCH 5/6] pc/machine: Disallow any configuration of dies for non-PC machines, Yanan Wang, 2021/07/02
[RFC PATCH 2/6] machine: Perform zero-check for the computed value of sockets, Yanan Wang, 2021/07/02