xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Petr Fedchenkov <giggsoff@gmail.com>
To: xen-devel@lists.xen.org
Subject: [BUG] usb devices disappear on xl reboot or reboot from inside of HVM DomU
Date: Wed, 7 Apr 2021 17:12:18 +0300	[thread overview]
Message-ID: <CAAM4PUgJ-fKXriQxaA2anU_7r+a1_ygR8aatuf0_icOMoZsHtA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

Hi.

I have the HVM DomU with usb device assigned to it
Config for xl:

# This file is automatically generated by domainmgr

name = "12e26d98-2f0d-450c-a1ee-d287bd37794c.1.1"

type = "hvm"

uuid = "12e26d98-2f0d-450c-a1ee-d287bd37794c"

vnc = 0

memory = 977

maxmem = 977

vcpus = 1

maxcpus = 1

boot = "dc"

disk =
['/persist/vault/volumes/630ad2a6-cd3f-4659-8ac0-cdcfd5ad6b75#0.qcow2,qcow2,xvda,rw','/run/domainmgr/cloudinit/12e26d98-2f0d-450c-a1ee-d287bd37794c.cidata,raw,xvdz,ro']

vif = ['bridge=bn1,vifname=nbu1x1,mac=00:16:3e:00:01:01,type=vif']

serial = ['pty']

usbctrl = ['type=auto, version=2, ports=6']

usbdev = ['hostbus=2,hostaddr=2,controller=0,port=1']


It boots and works as expected.

But after doing xl reboot or reboot from inside DomU, I cannot see usb
devices inside VM.


Before reboot:

#xenstore-ls

...

vusb = ""

    0 = ""

     type = "devicemodel"

     usb-ver = "2"

     num-ports = "6"

     port = ""

      1 = "2-1"

      2 = ""

      3 = ""

      4 = ""

      5 = ""

      6 = ""


#xl usb-list

Devid  Type         BE  state usb-ver ports

0      devicemodel  0   0     2       6

  Port 1: Bus 002 Device 002

  Port 2:

  Port 3:

  Port 4:

  Port 5:

  Port 6:


After reboot:

#xenstore-ls

...

vusb = ""

    0 = ""

     type = "devicemodel"

     usb-ver = "2"

     num-ports = "6"

     port = ""

      1 = ""

      2 = ""

      3 = ""

      4 = ""

      5 = ""

      6 = ""


#xl usb-list

Devid  Type         BE  state usb-ver ports

0      devicemodel  0   0     2       6

  Port 1:

  Port 2:

  Port 3:

  Port 4:

  Port 5:

  Port 6:


Steps to reproduce are inside https://github.com/lf-edge/eden/issues/578

xen_version            : 4.14.1


Best regard,

Petr Fedchenkov

[-- Attachment #2: Type: text/html, Size: 20201 bytes --]

                 reply	other threads:[~2021-04-07 14:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAM4PUgJ-fKXriQxaA2anU_7r+a1_ygR8aatuf0_icOMoZsHtA@mail.gmail.com \
    --to=giggsoff@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).