]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Use the correct limit for the number of PHBs
authorAndrea Bolognani <abologna@redhat.com>
Thu, 17 Aug 2017 15:19:57 +0000 (17:19 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 21 Aug 2017 11:11:49 +0000 (13:11 +0200)
commit64357c3f9373127aa8bdf5a829df4a9d895e1ef9
tree7520f792445a01616fb499a5fca605244fbc1fe1
parentc9d75d655ae73693a08123aca75677caf579f9e9
conf: Use the correct limit for the number of PHBs

I mistakenly thought pSeries guests supported 32 PHBs,
but it turns out they only support 31. Validate the
target index accordingly.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1479647

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-pseries-phb-invalid-target-index-3.xml