[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Property '.hmat' not found
From: |
Eduardo Habkost |
Subject: |
Re: Property '.hmat' not found |
Date: |
Mon, 16 Nov 2020 14:02:21 -0500 |
On Mon, Nov 16, 2020 at 01:51:37PM +0100, Philippe Mathieu-Daudé wrote:
> Cc'ing Igor & Eduardo.
Thanks!
>
> On 11/13/20 10:17 AM, Jack wrote:
> > Hi all,
> >
> > As I follow the document[1] to enable hmat, it fails and shows the message:
> > qemu-system-x86_64: Property '.hmat' not found
> >
> > My QEMU version is 5.1.90
Do you have the output of `qemu-system-x86_64 -version`, and more
information on how your binary was built?
Output of `-machine help` and `-machine pc,help` would be useful
to debug it, too.
I can't reproduce it here. I've tested both qemu.git master
(commit cb5ed407a1dd) and v5.2.0-rc (commit 3d6e32347a3b).
[build/(cb5ed407a1...)]$ ./qemu-system-x86_64 -version
QEMU emulator version 5.1.91 (v5.2.0-rc1-107-gcb5ed407a1)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
[build/(cb5ed407a1...)]$ ./qemu-system-x86_64 -machine hmat=on -m 2G -object
memory-backend-ram,size=1G,id=m0 -object memory-backend-ram,size=1G,id=m1 -smp
2 -numa node,nodeid=0,memdev=m0 -numa node,nodeid=1,memdev=m1,initiator=0 -numa
cpu ,node-id=0,socket-id=0 -numa cpu,node-id=0,socket-id=1 -numa
hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-latency,latency=5
-numa
hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-bandwidth,bandwidth=200M
-numa
hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-latency,latency=10
-numa
hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-bandwidth,bandwidth=100M
-numa
hmat-cache,node-id=0,size=10K,level=1,associativity=direct,policy=write-back,line=8
-numa
hmat-cache,node-id=1,size=10K,level=1,associativity=direct,policy=write-back,line=8
-cpu host -vga virtio -accel kvm
[VM boots]
> >
> > Does anyone know why?
> >
> > Here is my command:
> >
> > ```
> > $ sudo qemu-system-x86_64 \
> > -machine hmat=on \
> > -m 2G \
> > -object memory-backend-ram,size=1G,id=m0 \
> > -object memory-backend-ram,size=1G,id=m1 \
> > -smp 2 \
> > -numa node,nodeid=0,memdev=m0 \
> > -numa node,nodeid=1,memdev=m1,initiator=0 \
> > -numa cpu,node-id=0,socket-id=0 \
> > -numa cpu,node-id=0,socket-id=1 \
> > -numa
> > hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-latency,latency=5
> > \
> > -numa
> > hmat-lb,initiator=0,target=0,hierarchy=memory,data-type=access-bandwidth,bandwidth=200M
> > \
> > -numa
> > hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-latency,latency=10
> > \
> > -numa
> > hmat-lb,initiator=0,target=1,hierarchy=memory,data-type=access-bandwidth,bandwidth=100M
> > \
> > -numa
> > hmat-cache,node-id=0,size=10K,level=1,associativity=direct,policy=write-back,line=8
> > \
> > -numa
> > hmat-cache,node-id=1,size=10K,level=1,associativity=direct,policy=write-back,line=8
> > \
> > -cpu host \
> > -m 4g -vga virtio -hda ubuntu20.04.qcow2 \
> > -nic user,model=virtio \
> > -nic tap,model=e1000 \
> > -nic tap,model=e1000 \
> > -accel kvm
> > ```
> >
> > Thanks.
> >
> > [1]
> > https://www.qemu.org/docs/master/system/qemu-manpage.html?highlight=numa
> >
> >
> > Sincerely,
> > Jack
> >
>
--
Eduardo