Skip to contentSkip to conversation

qtest/x86/numa-test: do not use the obsolete 'pentium' cpu

PATCH Superseded Ani Sinha 4 participants 4 messages Jun 4, 2024 – Jun 11, 2024

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Ani Sinha

author
#0 lore raw

PATCH 1/1 qtest/x86/numa-test: do not use the obsolete 'pentium' cpu

'pentium' cpu is old and obsolete and should be avoided for running tests if its not strictly needed. Use 'max' cpu instead for generic non-cpu specific numa test.

---
 tests/qtest/numa-test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/qtest/numa-test.c +2 -1
index 7aa262dbb9..f01f19592d 100644
@@ -125,7 +125,8 @@ static void pc_numa_cpu(const void *data)
     QTestState *qts;
     g_autofree char *cli = NULL;
 
-    cli = make_cli(data, "-cpu pentium -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
+    cli = make_cli(data,
+        "-cpu max -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
         "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 "
         "-numa cpu,node-id=1,socket-id=0 "
         "-numa cpu,node-id=0,socket-id=1,core-id=0 "
Signature · 1 line
2.42.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Ani Sinha

'pentium' cpu is old and obsolete and should be avoided for running tests if its not strictly needed. Use 'max' cpu instead for generic non-cpu specific numa test.

---
  tests/qtest/numa-test.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
tests/qtest/numa-test.c +0 -0
index 7aa262dbb9..f01f19592d 100644

tests/qtest/numa-test.c static void pc_numa_cpu(const void *data) · line 132

Quoted 9 lines
tests/qtest/numa-test.c +2 -1
@@ -125,7 +125,8 @@ static void pc_numa_cpu(const void *data)
      QTestState *qts;
      g_autofree char *cli = NULL;
 
-    cli = make_cli(data, "-cpu pentium -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
+    cli = make_cli(data,
+        "-cpu max -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
          "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 "
          "-numa cpu,node-id=1,socket-id=0 "
          "-numa cpu,node-id=0,socket-id=1,core-id=0 "
Reviewed-by on v1 1/1
#2 lore raw
In reply to Ani Sinha
Quoted 6 lines · On Tue, 4 Jun 2024 11:51:33 +0530 Ani Sinha <[email protected]> wrote:

'pentium' cpu is old and obsolete and should be avoided for running tests if its not strictly needed. Use 'max' cpu instead for generic non-cpu specific numa test.

Quoted 18 lines
---
 tests/qtest/numa-test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/qtest/numa-test.c +2 -1
index 7aa262dbb9..f01f19592d 100644
@@ -125,7 +125,8 @@ static void pc_numa_cpu(const void *data)
     QTestState *qts;
     g_autofree char *cli = NULL;
 
-    cli = make_cli(data, "-cpu pentium -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
+    cli = make_cli(data,
+        "-cpu max -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
         "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 "
         "-numa cpu,node-id=1,socket-id=0 "
         "-numa cpu,node-id=0,socket-id=1,core-id=0 "
Tested-by on v1 1/1
#3 lore raw
In reply to Ani Sinha

This patch has been successfully tested. After running the numa-test binary, now -cpu max is being used instead of the obsolete 'pentium' one.

# starting QEMU: exec /home/qemu/build/qemu-system-x86_64 -qtest
unix:/tmp/qtest-16915.sock -qtest-log /dev/null -chardev
socket,path=/tmp/qtest-16915.qmp,id=char0 -mon
chardev=char0,mode=control -display none -audio none -object
memory-backend-ram,id=ram,size=128M -cpu max -machine
smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 -numa
node,nodeid=0,memdev=ram -numa node,nodeid=1 -numa
cpu,node-id=1,socket-id=0 -numa cpu,node-id=0,socket-id=1,core-id=0
-numa cpu,node-id=0,socket-id=1,core-id=1,thread-id=0 -numa
cpu,node-id=1,socket-id=1,core-id=1,thread-id=1 -accel qtest
Quoted 29 lines · Ani Sinha

'pentium' cpu is old and obsolete and should be avoided for running tests if its not strictly needed. Use 'max' cpu instead for generic non-cpu specific numa test.

---
 tests/qtest/numa-test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/qtest/numa-test.c +2 -2
index 7aa262dbb9..f01f19592d 100644
@@ -125,7 +125,8 @@ static void pc_numa_cpu(const void *data)
     QTestState *qts;
     g_autofree char *cli = NULL;
 
-    cli = make_cli(data, "-cpu pentium -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
+    cli = make_cli(data,
+        "-cpu max -machine smp.cpus=8,smp.sockets=2,smp.cores=2,smp.threads=2 "
         "-numa node,nodeid=0,memdev=ram -numa node,nodeid=1 "
         "-numa cpu,node-id=1,socket-id=0 "
         "-numa cpu,node-id=0,socket-id=1,core-id=0 "
--

2.42.0