qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH resend] vl.c: Don't limit node count by smp coun


From: Andre Przywara
Subject: Re: [Qemu-devel] [PATCH resend] vl.c: Don't limit node count by smp count
Date: Thu, 30 Jun 2011 11:14:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Lightning/1.0b2 Thunderbird/3.1.9

On 06/30/2011 05:29 AM, Sasha Levin wrote:
[I've sent this patch couple of months ago and noticed it
  didn't make it's way in - so I'm sending it again]

It is possible to create CPU-less NUMA nodes, node amount shouldn't be
limited by amount of CPUs.

Tested-by: Michael Roth<address@hidden>
Signed-off-by: Sasha Levin<address@hidden>
---
  vl.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vl.c b/vl.c
index e0191e1..b95ae8d 100644
--- a/vl.c
+++ b/vl.c
@@ -3147,8 +3147,8 @@ int main(int argc, char **argv, char **envp)
      if (nb_numa_nodes>  0) {
          int i;

-        if (nb_numa_nodes>  smp_cpus) {
-            nb_numa_nodes = smp_cpus;
+        if (nb_numa_nodes>  MAX_NODES) {
+            nb_numa_nodes = MAX_NODES;
          }

          /* If no memory size if given for any node, assume the default case

Acked-by: Andre Przywara <address@hidden>

Regards,
Andre.


--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]