Add fsts attribute to qemu command line if specified in domain conf.

Signed-off-by: Zhenzhong Duan <[email protected]>
---
 src/qemu/qemu_command.c                                   | 1 +
 tests/qemuxmlconfdata/intel-iommu-fsts.x86_64-latest.args | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index d7afdb4ee4..8c59ca4383 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -6344,6 +6344,7 @@ qemuBuildIOMMUCommandLine(virCommand *cmd,
                                       "p:aw-bits", iommu->aw_bits,
                                       "T:dma-translation", 
iommu->dma_translation,
                                       "T:scalable-mode", iommu->scalable_mode,
+                                      "T:fsts", iommu->fsts,
                                       NULL) < 0)
                 return -1;
 
diff --git a/tests/qemuxmlconfdata/intel-iommu-fsts.x86_64-latest.args 
b/tests/qemuxmlconfdata/intel-iommu-fsts.x86_64-latest.args
index bda776f46a..5db49142e5 100644
--- a/tests/qemuxmlconfdata/intel-iommu-fsts.x86_64-latest.args
+++ b/tests/qemuxmlconfdata/intel-iommu-fsts.x86_64-latest.args
@@ -26,7 +26,7 @@ 
XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -rtc base=utc \
 -no-shutdown \
 -boot strict=on \
--device '{"driver":"intel-iommu","id":"iommu0","scalable-mode":true}' \
+-device 
'{"driver":"intel-iommu","id":"iommu0","scalable-mode":true,"fsts":true}' \
 -audiodev '{"id":"audio1","driver":"none"}' \
 -global ICH9-LPC.noreboot=off \
 -watchdog-action reset \
-- 
2.52.0

Reply via email to