]> xenbits.xensource.com Git - libvirt.git/commit
conf: Fix smm=off handling
authorAndrea Bolognani <abologna@redhat.com>
Fri, 13 May 2022 14:09:30 +0000 (16:09 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 16 May 2022 12:29:11 +0000 (14:29 +0200)
commitb6705cdefb09ddeaefaf6fafd87479c0899ea98f
treeace081b1b4debaeaebd03b31a9031a85f8d4f184
parenta6ea77e0a5aaeecd2284a858a17f11179f8bfe50
conf: Fix smm=off handling

We have to always store the state of the feature in the
virDomainDef struct, otherwise

  <smm state='off'/>

will incorrectly be interpreted as if the <smm> element was not
present.

Fixes: eeb94215b074a71b3c8932d5fcaf657f269b2c82
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/machine-smm-off.x86_64-latest.args
tests/qemuxml2xmloutdata/machine-smm-off.x86_64-latest.xml