我的空闲KVM Windows VM使用了100%的CPU . 在设备管理器中禁用ehci(标准增强型PCI到USB主机控制器)后,它从100%主机CPU下降到3%主机CPU . 设备Magener图片

enter image description here

Vm在开始时正常运行 . 经过长时间计时器(可能是一个晚上),它上升到100% .

  • 为什么在禁用ehci时cpu使用率会降低?

  • 还有其他方法可以减少cpu的使用吗?

这是我的libvirt.xml

<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
  <name>i-win2003/name>
  <os>
    <type>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset="localtime"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu current="1">1</vcpu>
 <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <devices>
    <disk device="disk" type="file">
      <driver name="qemu" type="qcow2"/>
      <source file="/root/i-win2003/snap.qcow2"/>
      <target bus="virtio" dev="vda"/>
    </disk>
    <disk type='file' device='cdrom'>
      <source dev=''/>
      <target dev='hdc' bus='ide'/>
    </disk>
    <serial type="pty">
      <source path="/dev/pts/1"/>
      <target port="0"/>
    </serial>
   <interface type='bridge'>
      <mac address='fa:16:3e:81:68:b4'/>
      <source bridge='eucabr'/>
      <model type='virtio'/>
      <driver name='qemu'/>
      <alias name='net0'/>
    </interface>
    <channel type='unix'>
      <source mode='bind'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
    </channel>
    <controller type="usb" index="0" model="ich9-ehci1"/>
    <controller type="usb" index="0" model="ich9-uhci1"/>
    <controller type="usb" index="0" model="ich9-uhci2"/>
    <controller type="usb" index="0" model="ich9-uhci3"/>
    <input type="tablet" bus="usb"/>
    <input type="mouse" bus="ps2"/>
    <graphics type="vnc" port="-1" autoport="yes" keymap="en-us" listen="0.0.0.0"/>
  </devices>
  <qemu:commandline>
  </qemu:commandline>
</domain>