1. 19 3月, 2020 2 次提交
    • P
      qemuDomainChangeEjectableMedia: Don't always remove managed PR daemon · 02797541
      Peter Krempa 提交于
      When changing media we'd attempt to remove the managed pr daemon even if
      neither of the images involved in the media change used it. This caused
      libvirtd to log a spurious error:
      
      2020-03-18 01:41:19.832+0000: 643207: error : qemuMonitorJSONCheckError:412 : internal error: unable to execute QEMU command 'object-del': object 'pr-helper0' not found
      
      With this patch we completely avoid calling the deletion code.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1814486Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      02797541
    • P
      qemuDomainVcpuValidateConfig: Properly initialize 'firstcpu' variable · 5ed97c22
      Peter Krempa 提交于
      The loop which checks whether the vcpus are in proper configuration for
      the requested hot(un)plug skips the first modified vcpu. This means
      that 'firstvcpu' which is used to print the error message in case the
      configuration is not suitable would never point to the first modified
      vcpu.
      
      In cases such as:
      
        <vcpu placement='auto' current='5'>8</vcpu>
        <vcpus>
          <vcpu id='0' enabled='yes' hotpluggable='no'/>
          <vcpu id='1' enabled='yes' hotpluggable='no'/>
          <vcpu id='2' enabled='yes' hotpluggable='no'/>
          <vcpu id='3' enabled='yes' hotpluggable='no'/>
          <vcpu id='4' enabled='yes' hotpluggable='no'/>
          <vcpu id='5' enabled='no' hotpluggable='yes'/>
          <vcpu id='6' enabled='no' hotpluggable='yes'/>
          <vcpu id='7' enabled='no' hotpluggable='yes'/>
        </vcpus>
      
       # virsh setvcpu --config --disable  upstream 1
       error: invalid argument: vcpu '-1' can't be modified as it is followed by non-hotpluggable online vcpus
      
      After this fix the proper vcpu is reported in the error message:
      
       # virsh setvcpu --config --disable  upstream 1
       error: invalid argument: vcpu '1' can't be modified as it is followed by non-hotpluggable online vcpu
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1611061Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      5ed97c22
  2. 18 3月, 2020 8 次提交
  3. 17 3月, 2020 30 次提交