mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: Generate command line for MTE feature
This is pretty trivial, just append "mte=on/off" to -machine arguments. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
c6c9b5d251
commit
b10bc8f7ab
@ -6797,6 +6797,12 @@ qemuAppendDomainFeaturesMachineParam(virBuffer *buf,
|
||||
virBufferAsprintf(buf, ",cap-ibs=%s", str);
|
||||
}
|
||||
|
||||
if (def->features[VIR_DOMAIN_FEATURE_MTE] != VIR_TRISTATE_SWITCH_ABSENT) {
|
||||
const char *str;
|
||||
str = virTristateSwitchTypeToString(def->features[VIR_DOMAIN_FEATURE_MTE]);
|
||||
virBufferAsprintf(buf, ",mte=%s", str);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-aarch64test/.config \
|
||||
-name guest=aarch64test,debug-threads=on \
|
||||
-S \
|
||||
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-aarch64test/master-key.aes"}' \
|
||||
-machine virt,usb=off,gic-version=3,dump-guest-core=off,memory-backend=mach-virt.ram \
|
||||
-machine virt,usb=off,gic-version=3,mte=on,dump-guest-core=off,memory-backend=mach-virt.ram \
|
||||
-accel kvm \
|
||||
-cpu host \
|
||||
-m 1024 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user