Skip to contentSkip to conversation

Creating a passthrough USB device causes excessive CPU usage in the guest

Qemu-devel P. J. Reed 2 participants 3 messages Apr 17, 2015 – Jul 9, 2018

lore
Share & tools
lore

P. J. Reed

author
#0 lore raw

Public bug reported:

My host machine is a Lenovo X1 Carbon (3rd gen) laptop running 64-bit Ubuntu Linux 14.04. My guest machine is running 64-bit Ubuntu Linux 12.04. My QEMU was compiled moments ago from the git repository, and it says its version is:
qemu-x86_64 version 2.2.93, Copyright (c) 2003-2008 Fabrice Bellard

My issue is that when I create a passthrough for a USB host device to the guest, it causes qemu's CPU utilization on the host to increase significantly and stay there. After the passthrough is created, qemu's CPU usage in top hovers between 20% and 30% (evenly spread across CPUs). In virt-manager's CPU usage chart, it shows the guest's CPU usage growing from 0% to about 5%, although running "top" in the guest does not show an increase in CPU usage. These usage levels drop back down to normal (0 to 1%) only after I physically unplug the device or remove the passthrough mapping.

It doesn't seem to matter what the device is. I have tested it using:
A Realtek rtl8192cu-based 802.11n adapter
An HP optical mouse
A Samsung Galaxy S5 phone

The behavior is the same regardless of device, and they otherwise seem to work properly in the guest machine.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 35 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1445633

Title:
  Creating a passthrough USB device causes excessive CPU usage in the
  guest

Status in QEMU:
  New

Bug description:
  My host machine is a Lenovo X1 Carbon (3rd gen) laptop running 64-bit Ubuntu Linux 14.04.  My guest machine is running 64-bit Ubuntu Linux 12.04.  My QEMU was compiled moments ago from the git repository, and it says its version is:
  qemu-x86_64 version 2.2.93, Copyright (c) 2003-2008 Fabrice Bellard

  My issue is that when I create a passthrough for a USB host device to
  the guest, it causes qemu's CPU utilization on the host to increase
  significantly and stay there.  After the passthrough is created,
  qemu's CPU usage in top hovers between 20% and 30% (evenly spread
  across CPUs).  In virt-manager's CPU usage chart, it shows the guest's
  CPU usage growing from 0% to about 5%, although running "top" in the
  guest does not show an increase in CPU usage.  These usage levels drop
  back down to normal (0 to 1%) only after I physically unplug the
  device or remove the passthrough mapping.

  It doesn't seem to matter what the device is.  I have tested it using:
  A Realtek rtl8192cu-based 802.11n adapter
  An HP optical mouse
  A Samsung Galaxy S5 phone

  The behavior is the same regardless of device, and they otherwise seem
  to work properly in the guest machine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1445633/+subscriptions
#1 lore raw

Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?

** Changed in: qemu
Status: New => Incomplete

Signature · 35 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1445633

Title:
  Creating a passthrough USB device causes excessive CPU usage in the
  guest

Status in QEMU:
  Incomplete

Bug description:
  My host machine is a Lenovo X1 Carbon (3rd gen) laptop running 64-bit Ubuntu Linux 14.04.  My guest machine is running 64-bit Ubuntu Linux 12.04.  My QEMU was compiled moments ago from the git repository, and it says its version is:
  qemu-x86_64 version 2.2.93, Copyright (c) 2003-2008 Fabrice Bellard

  My issue is that when I create a passthrough for a USB host device to
  the guest, it causes qemu's CPU utilization on the host to increase
  significantly and stay there.  After the passthrough is created,
  qemu's CPU usage in top hovers between 20% and 30% (evenly spread
  across CPUs).  In virt-manager's CPU usage chart, it shows the guest's
  CPU usage growing from 0% to about 5%, although running "top" in the
  guest does not show an increase in CPU usage.  These usage levels drop
  back down to normal (0 to 1%) only after I physically unplug the
  device or remove the passthrough mapping.

  It doesn't seem to matter what the device is.  I have tested it using:
  A Realtek rtl8192cu-based 802.11n adapter
  An HP optical mouse
  A Samsung Galaxy S5 phone

  The behavior is the same regardless of device, and they otherwise seem
  to work properly in the guest machine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1445633/+subscriptions
#2 lore raw
In reply to P. J. Reed

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 35 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1445633

Title:
  Creating a passthrough USB device causes excessive CPU usage in the
  guest

Status in QEMU:
  Expired

Bug description:
  My host machine is a Lenovo X1 Carbon (3rd gen) laptop running 64-bit Ubuntu Linux 14.04.  My guest machine is running 64-bit Ubuntu Linux 12.04.  My QEMU was compiled moments ago from the git repository, and it says its version is:
  qemu-x86_64 version 2.2.93, Copyright (c) 2003-2008 Fabrice Bellard

  My issue is that when I create a passthrough for a USB host device to
  the guest, it causes qemu's CPU utilization on the host to increase
  significantly and stay there.  After the passthrough is created,
  qemu's CPU usage in top hovers between 20% and 30% (evenly spread
  across CPUs).  In virt-manager's CPU usage chart, it shows the guest's
  CPU usage growing from 0% to about 5%, although running "top" in the
  guest does not show an increase in CPU usage.  These usage levels drop
  back down to normal (0 to 1%) only after I physically unplug the
  device or remove the passthrough mapping.

  It doesn't seem to matter what the device is.  I have tested it using:
  A Realtek rtl8192cu-based 802.11n adapter
  An HP optical mouse
  A Samsung Galaxy S5 phone

  The behavior is the same regardless of device, and they otherwise seem
  to work properly in the guest machine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1445633/+subscriptions