From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F7EBC433ED for ; Wed, 7 Apr 2021 14:17:11 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 28BAB61107 for ; Wed, 7 Apr 2021 14:17:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28BAB61107 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.106700.204011 (Exim 4.92) (envelope-from ) id 1lU8zH-0006hW-UY; Wed, 07 Apr 2021 14:16:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 106700.204011; Wed, 07 Apr 2021 14:16:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lU8zH-0006hP-Pn; Wed, 07 Apr 2021 14:16:55 +0000 Received: by outflank-mailman (input) for mailman id 106700; Wed, 07 Apr 2021 14:12:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lU8v2-0006bb-9J for xen-devel@lists.xen.org; Wed, 07 Apr 2021 14:12:32 +0000 Received: from mail-lf1-x12c.google.com (unknown [2a00:1450:4864:20::12c]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 69ac4566-7e73-497b-9795-b38be7a3db95; Wed, 07 Apr 2021 14:12:30 +0000 (UTC) Received: by mail-lf1-x12c.google.com with SMTP id d13so28766995lfg.7 for ; Wed, 07 Apr 2021 07:12:30 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 69ac4566-7e73-497b-9795-b38be7a3db95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dzFyQwo7Y8Hg+ulUDLim2BhAP7j/7QOGS1rj2gXZWAs=; b=kXPWqkU+Fvhfrb6Bt3rpI0g86PJjBnyCylAJ7xLMoPVECga4nbM9DwAyWdFvRDKJg2 ScOsvg76l+jsqxC5RwhUiJMWL3ozTPY3NCpycmvvawlYUqLHMmV0Goy2t3F0eya8Kp+3 vV9bd/46cmi/yHYdbuUoo9ptAzpCb/Cs36h6IzG+Gc79gGRG7Of6R7gQYqwvwVr8LZd+ jM/uyhAbBNpOjmMs+6Nre++gFNBanQxuRw2+sClpgj3JyGNufIBTnashUM8QkDZCmJ3w OodhmDVHtcwVOooS794iqiBoGPlWGETTxViL5ashaZITI2Fd3hyib8OMJ0KQigDgswiG cadg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dzFyQwo7Y8Hg+ulUDLim2BhAP7j/7QOGS1rj2gXZWAs=; b=bWE6t4GUIfFhMAbB9/3oj53nz8lHEW1+bsWTVcGi6ea2Dq1k6aUbxP7diFPDzwMwPx FBDNV5sfKQ5pqjJw4PUOgQCktTer6wlCnm9GVxc0zxGAF0VNy5c7+ehdmO6QpTGdKNsE WMuIdMtNz46jdvm5dhm4476h1+3DSsog3EmlL3PUfJcyi8GicOuVpQCQSeIWxut80pF/ zl2+sAfmwRrgtLyvUpItCUo+Ei1vMa7Zj9zX+k62ckPTtb8JMXKo+l6mAW/V610qn3mP nA4zBrhoyUfMoKBkAbnhzZW+hmDUQFsbLo9msdvzYK4B9upAIZH3fp/4Y4JrkRzxWk2u WwxA== X-Gm-Message-State: AOAM533Fe56Q0DKcJHFeTXSaunFveUnnbDqOdOzGp0XC5gaMqhZJTcWA 32B9F7mW6FnzL0O//4PGadwHawvbXZmO1JNchUp06QWV20mhNg== X-Google-Smtp-Source: ABdhPJz8ZneyXygd3+oCgI9GSU90pIN+ymhHArNHWhXMvlzT7iaW1YdjPQ34q/2NOuHfFuFVML+9AvI5l5vMTAZD4a0= X-Received: by 2002:a19:818d:: with SMTP id c135mr2497173lfd.349.1617804749162; Wed, 07 Apr 2021 07:12:29 -0700 (PDT) MIME-Version: 1.0 From: Petr Fedchenkov Date: Wed, 7 Apr 2021 17:12:18 +0300 Message-ID: Subject: [BUG] usb devices disappear on xl reboot or reboot from inside of HVM DomU To: xen-devel@lists.xen.org Content-Type: multipart/alternative; boundary="00000000000063cb9605bf62855d" --00000000000063cb9605bf62855d Content-Type: text/plain; charset="UTF-8" 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 --00000000000063cb9605bf62855d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.

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

# This file is automatically generated by do= mainmgr

name =3D "12e26d98-2f0d-450c-a1ee-d287b= d37794c.1.1"

type =3D "hvm"

uuid =3D "12e26d98-2f0d-450c-a1ee-d287b= d37794c"

vnc =3D 0

memory =3D 977

maxmem =3D 977

vcpus =3D 1

maxcpus =3D 1

boot =3D "dc"

disk =3D ['/persist/vault/volumes/630ad2= a6-cd3f-4659-8ac0-cdcfd5ad6b75#0.qcow2,qcow2,xvda,rw','/run/domainm= gr/cloudinit/12e26d98-2f0d-450c-a1ee-d287bd37794c.cidata,raw,xvdz,ro']<= /font>

vif =3D ['bridge=3Dbn1,vifname=3Dnbu1x1,= mac=3D00:16:3e:00:01:01,type=3Dvif']

serial =3D ['pty']

usbctrl =3D ['type=3Dauto, version=3D2, = ports=3D6']

usbdev =3D ['hostbus=3D2,hostaddr=3D2,co= ntroller=3D0,port=3D1']


It boots and w= orks as expected.

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


Before reboot:

#xenstore-ls

...

<= p class=3D"gmail-p1" style=3D"margin:0px;font-style:normal;font-variant:nor= mal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:norma= l">vusb =3D ""

=C2=A0 =C2=A0 0 =3D ""

=C2=A0=C2=A0 =C2=A0 type =3D "= devicemodel"

=C2=A0=C2=A0 =C2=A0 usb-ver =3D "2&qu= ot;

=C2=A0=C2=A0 =C2=A0 num-ports =3D "6"

= =C2=A0=C2=A0 =C2=A0 port =3D ""

=C2=A0 =C2=A0 = =C2=A0 1 =3D "2-1"

=C2=A0 =C2=A0 =C2=A0 2= =3D ""

=C2=A0 =C2=A0 =C2=A0 3 =3D ""

=C2=A0 =C2=A0 =C2=A0 4 =3D ""

=C2=A0 =C2=A0 = =C2=A0 5 =3D ""

=C2=A0 =C2=A0 =C2=A0=C2=A06 =3D ""


#xl us= b-list

Devid=C2=A0 Type =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE=C2=A0 state usb-ver ports

0=C2=A0 =C2=A0 =C2= =A0 devicemodel=C2=A0 0 =C2=A0 0 =C2=A0 =C2=A0 2 =C2=A0 =C2=A0 =C2=A0 6 =C2=A0 =C2=A0

=C2=A0 Port = 1: Bus 002 Device 002

=C2=A0 Port 2:

=C2=A0 P= ort 3:

=C2=A0 Port 4:

=C2=A0 Port 5:<= /p>

=C2=A0=C2=A0Port 6:


= After reboot:

#xenstore-ls

...

vusb = =3D ""

=C2=A0 =C2=A0 0 =3D ""

=

= =C2=A0=C2=A0 =C2=A0 type =3D "devicemodel"

<= font face=3D"monospace">=C2=A0= =C2=A0 =C2=A0 usb-ver =3D "2"

=C2=A0=C2=A0 =C2=A0 = num-ports =3D "6"

<= span class=3D"gmail-Apple-converted-space">=C2=A0=C2=A0 =C2=A0 port = =3D ""

=C2=A0 =C2=A0 =C2=A0 1 =3D ""

=C2=A0 =C2=A0 =C2=A0 2 =3D ""

=C2=A0 =C2=A0 = =C2=A0 3 =3D ""

=C2=A0 =C2=A0 =C2=A0 4 =3D = ""

=C2=A0 =C2=A0 =C2=A0 5 =3D ""<= /p>

=C2=A0 =C2=A0 =C2=A0=C2=A06 =3D ""


#xl us= b-list

Devid=C2=A0 Type =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE=C2=A0 state usb-ver ports

0=C2=A0 =C2=A0 =C2= =A0 devicemodel=C2=A0 0 =C2=A0 0 =C2=A0 =C2=A0 2 =C2=A0 =C2=A0 =C2=A0 6 =C2=A0 =C2=A0

=C2=A0 Port = 1:

=C2=A0 Port 2:

=C2=A0 Port 3:

=C2= =A0 Port 4:

=C2=A0 Port 5:

=C2=A0=C2=A0Port 6:


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

xen_version=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 : 4.14.1


Best regard,

Petr Fedchenkov


--00000000000063cb9605bf62855d--