mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/marcandre/tags/for-6.0-pull-request' into staging
For 6.0 misc patches under my radar. V2: - "tests: Add tests for yank with the chardev-change case" updated - drop the readthedoc theme patch # gpg: Signature made Thu 01 Apr 2021 12:54:52 BST # gpg: using RSA key 87A9BD933F87C606D276F62DDAE8E10975969CE5 # gpg: issuer "marcandre.lureau@redhat.com" # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>" [full] # gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com>" [full] # Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5 * remotes/marcandre/tags/for-6.0-pull-request: tests: Add tests for yank with the chardev-change case chardev: Fix yank with the chardev-change case chardev/char.c: Always pass id to chardev_new chardev/char.c: Move object_property_try_add_child out of chardev_new yank: Always link full yank code yank: Remove dependency on qiochannel docs: simplify each section title dbus-vmstate: Increase the size of input stream buffer used during load util: fix use-after-free in module_load_one Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
@@ -65,6 +65,8 @@ struct Chardev {
|
||||
char *filename;
|
||||
int logfd;
|
||||
int be_open;
|
||||
/* used to coordinate the chardev-change special-case: */
|
||||
bool handover_yank_instance;
|
||||
GSource *gsource;
|
||||
GMainContext *gcontext;
|
||||
DECLARE_BITMAP(features, QEMU_CHAR_FEATURE_LAST);
|
||||
@@ -251,6 +253,7 @@ struct ChardevClass {
|
||||
ObjectClass parent_class;
|
||||
|
||||
bool internal; /* TODO: eventually use TYPE_USER_CREATABLE */
|
||||
bool supports_yank;
|
||||
void (*parse)(QemuOpts *opts, ChardevBackend *backend, Error **errp);
|
||||
|
||||
void (*open)(Chardev *chr, ChardevBackend *backend,
|
||||
|
||||
@@ -73,16 +73,6 @@ void yank_unregister_function(const YankInstance *instance,
|
||||
YankFn *func,
|
||||
void *opaque);
|
||||
|
||||
/**
|
||||
* yank_generic_iochannel: Generic yank function for iochannel
|
||||
*
|
||||
* This is a generic yank function which will call qio_channel_shutdown on the
|
||||
* provided QIOChannel.
|
||||
*
|
||||
* @opaque: QIOChannel to shutdown
|
||||
*/
|
||||
void yank_generic_iochannel(void *opaque);
|
||||
|
||||
#define BLOCKDEV_YANK_INSTANCE(the_node_name) (&(YankInstance) { \
|
||||
.type = YANK_INSTANCE_TYPE_BLOCK_NODE, \
|
||||
.u.block_node.node_name = (the_node_name) })
|
||||
|
||||
Reference in New Issue
Block a user