[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/78] numa: remove not needed check
From: |
Michael Roth |
Subject: |
[PATCH 08/78] numa: remove not needed check |
Date: |
Tue, 16 Jun 2020 09:14:37 -0500 |
From: Igor Mammedov <imammedo@redhat.com>
Currently parse_numa_node() is always called from already numa
enabled context.
Drop unnecessary check if numa is supported.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1576154936-178362-2-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit 5275db59aa7ff8a26bd6aa5d07cb4d53de5cfab5)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
hw/core/numa.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/hw/core/numa.c b/hw/core/numa.c
index e3332a984f..19f082de12 100644
--- a/hw/core/numa.c
+++ b/hw/core/numa.c
@@ -83,10 +83,6 @@ static void parse_numa_node(MachineState *ms,
NumaNodeOptions *node,
return;
}
- if (!mc->cpu_index_to_instance_props || !mc->get_default_cpu_node_id) {
- error_setg(errp, "NUMA is not supported by this machine-type");
- return;
- }
for (cpus = node->cpus; cpus; cpus = cpus->next) {
CpuInstanceProperties props;
if (cpus->value >= max_cpus) {
@@ -178,9 +174,8 @@ void parse_numa_distance(MachineState *ms, NumaDistOptions
*dist, Error **errp)
void set_numa_options(MachineState *ms, NumaOptions *object, Error **errp)
{
Error *err = NULL;
- MachineClass *mc = MACHINE_GET_CLASS(ms);
- if (!mc->numa_mem_supported) {
+ if (!ms->numa_state) {
error_setg(errp, "NUMA is not supported by this machine-type");
goto end;
}
--
2.17.1
- Re: [PATCH 72/78] 9p: Lock directory streams with a CoMutex, (continued)
[PATCH 73/78] net: Do not include a newline in the id of -nic devices, Michael Roth, 2020/06/16
[PATCH 75/78] virtio-balloon: fix free page hinting without an iothread, Michael Roth, 2020/06/16
[PATCH 76/78] virtio-balloon: fix free page hinting check on unrealize, Michael Roth, 2020/06/16
[PATCH 74/78] nbd/server: Avoid long error message assertions CVE-2020-10761, Michael Roth, 2020/06/16
[PATCH 77/78] virtio-balloon: unref the iothread when unrealizing, Michael Roth, 2020/06/16
[PATCH 78/78] block: Call attention to truncation of long NBD exports, Michael Roth, 2020/06/16
[PATCH 07/78] virtio-blk: fix out-of-bounds access to bitmap in notify_guest_bh, Michael Roth, 2020/06/16
[PATCH 08/78] numa: remove not needed check,
Michael Roth <=
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Cole Robinson, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Liam Merwick, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Karl Heubaum, 2020/06/17
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Finn Thain, 2020/06/19
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Bruce Rogers, 2020/06/20
Re: [PATCH 00/78] Patch Round-up for stable 4.2.1, freeze on 2020-06-22, Michael Roth, 2020/06/22