mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
replay: replay blockers for devices
Some devices are not supported by record/replay subsystem. This patch introduces replay blocker which denies starting record/replay if such devices are included into the configuration. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162512.8676.11367.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
This commit is contained in:
parent
7615936ebf
commit
0194749ac4
5 changed files with 35 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
#include "hw/usb.h"
|
||||
#include "sysemu/bt.h"
|
||||
#include "hw/bt.h"
|
||||
#include "qapi/qmp/qerror.h"
|
||||
#include "sysemu/replay.h"
|
||||
|
||||
struct bt_hci_s {
|
||||
uint8_t *(*evt_packet)(void *opaque);
|
||||
|
@ -72,6 +74,8 @@ struct bt_hci_s {
|
|||
|
||||
struct HCIInfo info;
|
||||
struct bt_device_s device;
|
||||
|
||||
Error *replay_blocker;
|
||||
};
|
||||
|
||||
#define DEFAULT_RSSI_DBM 20
|
||||
|
@ -2189,6 +2193,9 @@ struct HCIInfo *bt_new_hci(struct bt_scatternet_s *net)
|
|||
|
||||
s->device.handle_destroy = bt_hci_destroy;
|
||||
|
||||
error_setg(&s->replay_blocker, QERR_REPLAY_NOT_SUPPORTED, "-bt hci");
|
||||
replay_add_blocker(s->replay_blocker);
|
||||
|
||||
return &s->info;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue