[Bug 239341] HDA support doesn't work for me
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 22 13:19:57 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239341
Tiwei Bie <btw at mail.ustc.edu.cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |btw at mail.ustc.edu.cn
--- Comment #5 from Tiwei Bie <btw at mail.ustc.edu.cn> ---
According to
https://github.com/freebsd/freebsd/blob/1872e290af2d/sys/dev/sound/pci/hda/hdac_private.h#L146-L151
, it seems the definition of `struct hda_bdle` is wrong. Something like this is
needed:
diff --git c/usr.sbin/bhyve/pci_hda.c i/usr.sbin/bhyve/pci_hda.c
index ace88274ac9..e0324f46a95 100644
--- c/usr.sbin/bhyve/pci_hda.c
+++ i/usr.sbin/bhyve/pci_hda.c
@@ -80,10 +80,10 @@ typedef void (*hda_set_reg_handler)(struct hda_softc *sc,
uint32_t offset,
uint32_t old);
struct hda_bdle {
- uint32_t addrh;
uint32_t addrl;
+ uint32_t addrh;
+ uint32_t len;
uint32_t ioc;
- uint32_t len;
} __packed;
struct hda_bdle_desc {
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list