Re: Applying Throttle Block Filter via QMP Command

2025-02-10 Thread Henry lol
Oh, I'm really sorry.
It doesn't work as you said, and it should be throttle-node instead of
qcow2-node.

On the other hand, is it difficult to apply and manage throttle using
the QMP command?

Sincerely,

2025년 1월 27일 (월) 오후 7:42, Alberto Garcia 님이 작성:
>
> On Thu, Jan 09, 2025 at 11:02:46AM +0900, Henry lol wrote:
> > scenario where throttle works as expected
> >
> > 2-1 execute the qemu process with
> > ...
> > -object throttle-group,id=tg,x-bps-total=10485760 \
> > -blockdev 
> > '{"driver":"throttle","throttle-group":"tg","node-name":"throttle-node","file":{
> >   
> > "driver":"qcow2","node-name":"qcow2-node","file":{"driver":"file","filename":"/path/to/file.qcow2"}
> > }}' \
> > -device 
> > virtio-blk-pci,scsi=off,drive=qcow2-node,id=did,bootindex=1,bus=pci.0,addr=0x05,serial=1234
>
> How is this supposed to work as expected when the guest sees
> qcow2-node (which is the unfiltered qcow2 file) instead of
> throttle-node (which is the one that applies the limits that you set)?
>
>-device virtio-blk-pci,scsi=off,drive=qcow2-node
>  ^^
>
> If I run that example the x-bps-total limit is ignored.
>
> Berto
>



EPYC SEV-ES-SNP cpu feature enable

2025-02-10 Thread Paraskevas Nik
*Hello I am trying to enable libvirt to support sev-snp. Currently I am
using virsh domcapabilities to check if its enabled but I am getting : *


*Followed the instructions at : *
*https://libvirt.org/kbase/launch_security_sev.html*



* My AMD CPU supports SEV,SEV-SNP and I have followed all the steps and it
is enabled.  BIOS settings are configured to support SEV,SNP CPU: AMD EPYC
9254*



*# cat /sys/module/kvm_amd/parameters/sev*

*Y*



*# dmesg | grep -i sev*

*[0.00] SEV-SNP: RMP table physical range [0x2d50 -
0x4ddf]*

*[0.009021] SEV-SNP: Reserving start/end of RMP table on a 2MB boundary
[0x2d40]*

*[   11.184492] ccp :01:00.5: sev enabled*

*[   12.664210] ccp :01:00.5: SEV API:1.55 build:36*

*[   12.664217] ccp :01:00.5: SEV-SNP API:1.55 build:36*

*[   12.671343] kvm_amd: SEV enabled (ASIDs 16 - 1006)*

*[   12.671345] kvm_amd: SEV-ES enabled (ASIDs 1 - 15)*

*[   12.671346] kvm_amd: SEV-SNP enabled (ASIDs 1 - 15)*



My guess is that my qemu binary does not support sev cpu feature.
I am trying to add it using:
#qemu-system-x86_64 -cpu host,+sev

But the output is the following.
qemu-system-x86_64: Property 'host-x86_64-cpu.sev' not found

Do you have any insights on this?

*Versions:*

*Libvirt version: 10.7.0*

*qemu-system-x86_64 version : 9.1.0*

*Linux kernel version: 6.11.0-rc3*

*Distro: Ubuntu 22.04.4 LTS*


* If you need any other information please let me know.*

Thanks!