On Mon, Jun 30, 2025 at 02:17:24PM +0800, Zhenzhong Duan wrote:
> 'tdx-guest' object supports a "quote-generation-socket" property for
> attestation purpose. When "quote-generation-socket" is configured in
> guest xml, libvirt generates unix socket format cmdline for QEMU.
>
> 'Path' element can be omitted, default path "/var/run/tdx-qgs/qgs.socket"
> is used in this case.
>
> QEMU command line example:
> qemu-system-x86_64 \
> -object
> '{"qom-type":"tdx-guest","id":"lsec0","mrconfigid":"xxx","mrowner":"xxx","mrownerconfig":"xxx","quote-generation-socket":{"type":"unix","path":"/var/run/tdx-qgs/qgs.socket"},"attributes":268435457}'
> \
> -machine pc-q35-6.0,confidential-guest-support=lsec0
>
> Signed-off-by: Zhenzhong Duan <[email protected]>
> ---
> src/conf/domain_conf.h | 3 +++
> src/qemu/qemu_command.c | 14 ++++++++++++++
> 2 files changed, 17 insertions(+)
Reviewed-by: Daniel P. Berrangé <[email protected]>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|