[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need BT support in qemu for Zephyr
From: |
Daniel P . Berrangé |
Subject: |
Re: Need BT support in qemu for Zephyr |
Date: |
Thu, 23 Apr 2020 15:11:12 +0100 |
User-agent: |
Mutt/1.13.3 (2020-01-12) |
On Thu, Apr 23, 2020 at 07:33:37AM -0600, Dan Christian wrote:
> There was a note about BT support being deprecated.
>
> Having it makes developing/testing Zephyr
> <https://github.com/zephyrproject-rtos/zephyr> bluetooth vastly easier.
>
> I hope it will be retained.
Unfortunately it has already been deleted and so will be gone in the 5.0
release of QEMU for certain. In theory it could be brought back to life
in future releases, but it would require someone to step forward as an
active maintainer and fix the problems it had.
The big driving reason for deleting it was that it appeared to be largely
broken / crashing as explained in the commit removing it:
commit 1d4ffe8dc77cbc9aafe8bcf514ca0e43f85aaae3
Author: Thomas Huth <address@hidden>
Date: Wed Nov 20 10:10:13 2019 +0100
Remove the core bluetooth code
It's been deprecated since QEMU v3.1. We've explicitly asked in the
deprecation message that people should speak up on qemu-devel in case
they are still actively using the bluetooth part of QEMU, but nobody
ever replied that they are really still using it.
I've tried it on my own to use this bluetooth subsystem for one of my
guests, but I was also not able to get it running anymore: When I was
trying to pass-through a real bluetooth device, either the guest did
not see the device at all, or the guest crashed.
Even worse for the emulated device: When running
qemu-system-x86_64 -bt device:keyboard
QEMU crashes once you hit a key.
So it seems like the bluetooth stack is not only neglected, it is
completely bitrotten, as far as I can tell. The only attention that
this code got during the past years were some CVEs that have been
spotted there. So this code is a burden for the developers, without
any real benefit anymore. Time to remove it.
Note: hw/bt/Kconfig only gets cleared but not removed here yet.
Otherwise there is a problem with the *-softmmu/config-devices.mak.d
dependency files - they still contain a reference to this file which
gets evaluated first on some build hosts, before the file gets
properly recreated. To avoid breaking these builders, we still need
the file around for some time. It will get removed in a couple of
weeks instead.
Message-Id: <address@hidden>
Reviewed-by: Ján Tomko <address@hidden>
Acked-by: Paolo Bonzini <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
Can you give more details about what specific QEMU configuration you are
using with Bluetooth - eg what QEMU command line args are you passing
and how functional was the result? Also what QEMU versions have you
succesfully used BT with ?
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|