[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] problems with NICs pass through to OpenBSD guest


  • To: Adam Szewczyk <szewcson@xxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 16 Sep 2022 11:37:37 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=47SEWiMq5Kg7lanT8g2K8KCV0HeDgSQYEYpcOst/oUk=; b=di9jGT5Q9NnGZzlPJXgiG1kSNTbH26PdN0npJEF4uj6Yx2PTG7G+0G7kg1/0MxWJ0e/zB8+VeP7NrP8J1p13tUhBQ1HTH/kBPsLZIJBRHZn8HozGDBEOF+mwY/t4pPaO3452ZN+boP0+I9geNEt6lg6ykSj99snMhmaaoz/K+btrKPQCecB3gvjjOYLFjSe7+FzgHhumtaikabp3ib1QmdPofowsd+ZCrYL7hk5dYfYLiJB8TTI7iMRIHcYEEDykwiJrTnrtB8zekiPCtmqOoh/qIr7L8QNb34nz1f74G22NX7w1Uuro7bRUb9ENGC0IhdsN/aCy/WVUFdS7XTFHMw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CU6SuHzhW34mDfzZprCNJqm0KthFcLA3bZS25FtawgQod+W2dOL2CoL8UuPblARQaraTYevUIiAa3DUXCbucoAwkhCxCGpDSqozRiuT5Eq2FOLfAMv4MCURYeDiEEj3o38KdezCE+n+zbKtrSFaG///LcWiPhbR6NL7emDW0bxI3Bv8fgJfJg0e9TIvHFXMriRbIb5TTQCOUHbxzkVVJ450nhCO6D4DC/y80Jb8NAFt/35V07p1Q4JZ4W+yN5hPXh1nisjV2KYgrSmrBhjWWHEvMkZ40sHpCzjWOHwJfjkVqb4ZgOFbPGTCk3WzCHrpx7N1hGnKpAfvf2G8ChF5kGQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxx
  • Delivery-date: Fri, 16 Sep 2022 09:38:18 +0000
  • Ironport-data: A9a23:mjSygK2soeuVd3Zo+/bD5dJwkn2cJEfYwER7XKvMYLTBsI5bpzAGy 2YXXjuHbv7Za2ukedh+Od6zoR5X68fQyoIwTFFppC1hF35El5HIVI+TRqvS04J+DSFhoGZPt Zh2hgzodZhsJpPkjk7xdOKn9RGQ7InQLpLkEunIJyttcgFtTSYlmHpLlvUwx4VlmrBVOSvU0 T/Ji5CZaQTNNwJcaDpOsfrS8U035ZwehRtD1rAATaET1LPhvyF94KI3fcmZM3b+S49IKe+2L 86rIGaRpz6xE78FU7tJo56jGqE4aue60Tum0xK6b5OKkBlazhHe545gXBYqheW7vB3S9zx54 I0lWZVd0m7FNIWU8AgWe0Ew/y2TocSqUVIISJSymZX78qHIT5fj6/g+I3hqZY09xqV6JX0Xt vE7MncvTR/W0opawJrjIgVtruIKCZCxeaYg4DRnxzyfCus6S5feRamM/cVfwDo7msFJG7DZe tYdbj1sKh/HZnWjOH9OUM54wLju2Ce5L2MwRFG9/MLb50DJywN8yv71Ocf9cd2WX8RF2E2fo woq+kymU0FDa4DDmFJp9FqererKuDj9dr4eBaCg18Bq20aKyn46XUh+uVyT5KPRZlSFc8lNJ lMf4S0ohac3/U2vCNL6WnWQsHOC+xIRRddUO+k78x2WjLrZ5UCeHGdsc9JaQNkvtctzQCNw0 FaMxontHWY37OPTTm+B/LCJqz/0ITISMWIJeS4DS00C/sXnp4YwyBnIS76PDZKIszE8Ihmoq xjikcT0r+x7YRIjv0ljwW36vg==
  • Ironport-hdrordr: A9a23:YvOEqa7ac/HpqAlD8wPXwS2BI+orL9Y04lQ7vn2ZFiY5TiXIra qTdaogviMc6Ax/ZJjvo6HkBEClewKlyXcV2/hpAV7GZmXbUQSTTL2KgbGSoAEIXheOjdK1tp 0QD5SWaueAamSS5PySiGfYLz9j+qjgzEnBv5ai854Hd3APV0gP1XYaNu7NeXcGPjWuSKBJY6 a0145inX6NaH4XZsO0Cj0sWPXCncTCkNbDbQQdDxAqxQGShXfwgYSKWiSw71M7aXdi0L0i+W /Kn0jQ4biiieiyzlv523XI55pbtdP9wp9oBdCKiOISNjLw4zzYErhJavmnhnQYseuv4FElnJ 3lpAohBd167zfrcmS8sXLWqnvd+Qdrz0Wn5U6TgHPlr8C8bik9EdB9iYVQdQacw1Y8vflnuZ g7kl6xht5yN1ftjS7979/HW1VBjUyvu0cvluYVkjh2TZYeUrlMtoYSlXklWqvoJBiKp7zPLd MeQv01vJ1tABKnhjHizyJSKeWXLzgO9kzseDlDhiSXuwIm70yRgXFoh/D3pU1wha7Ve6M0mN gsDZ4Y6o2mbvVmGJ6VV91xNfefOyjqfS/mFl60DBDOKJwnUki926Ifpo9FrN2XRA==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Sep 16, 2022 at 08:22:43AM +0200, Adam Szewczyk wrote:
> I have QubesOS 4.1.1 with Xen 4.14.5 hypervisor system on which I want to
> install OpenBSD as a HVM and pass through my NICs to it (Intel Wireless
> AC-9560 and Realtek 8168 rev 0x15: RTL8168H/8111H). I tested that when
> installing OpenBSD on actual hardware both NICs seems to working properly.
> But on hvm ethernet spamming me with: re0: watchdog timeout messages and
> not working. Wireless causing OpenBSD Panic!

Can you also paste the panic message?

> first throwing errors like
> this: iwm0: fw chunk addr 0x404000 len 712 failed to load.

So you tested with two different devices, and both failed to
passthrough.

We need to analyze the issues separately I think.

AFAICT, for Intel Wireless AC-9560 you get:

iwm0: fw chunk addr 0x404000 len 712 failed to load.

For this, could you get the output of `pcidump -v` from inside the
guest?

And for Realtek 8168 rev 0x15:

re0: watchdog timeout

For this one, does disabling msi fix the issue? I've been looking,
but have no idea how to prevent OpenBSD from using MSI interrupts,
either for the re interface only or globally.

With MSI enabled, and the guest running, can you paste the output of
the 'M' and 'i' Xen debug keys?  You can do that on the serial
console, or alternatively:

# xl debug-keys 'Mi'
# xl dmesg

You will see the output of the debug keys in the `xl dmesg` command.

Regards, Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.