diff options
author | John Haxby <john.haxby@oracle.com> | 2011-06-17 12:15:35 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2011-09-09 13:13:16 +0000 |
commit | 384087b2fec0da72238e92a0c6124579117e0c4b (patch) | |
tree | 8fa78910a65fd5b553bc41c4d65310c536edf494 /hw/xen_console.c | |
parent | 07ff2c4475df77e38a31d50ee7f3932631806c15 (diff) | |
download | qemu-384087b2fec0da72238e92a0c6124579117e0c4b.zip qemu-384087b2fec0da72238e92a0c6124579117e0c4b.tar.gz qemu-384087b2fec0da72238e92a0c6124579117e0c4b.tar.bz2 |
Introduce a new 'connected' xendev op called when Connected.
Rename the existing xendev 'connect' op to 'initialised' and introduce
a new 'connected' op. This new op, if defined, is called when the
backend is connected. Note that since there is no state transition this
may be called more than once.
Signed-off-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'hw/xen_console.c')
-rw-r--r-- | hw/xen_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_console.c b/hw/xen_console.c index 5789bd0..edcb31c 100644 --- a/hw/xen_console.c +++ b/hw/xen_console.c @@ -212,7 +212,7 @@ out: return ret; } -static int con_connect(struct XenDevice *xendev) +static int con_initialise(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); int limit; @@ -273,7 +273,7 @@ struct XenDevOps xen_console_ops = { .size = sizeof(struct XenConsole), .flags = DEVOPS_FLAG_IGNORE_STATE, .init = con_init, - .connect = con_connect, + .initialise = con_initialise, .event = con_event, .disconnect = con_disconnect, }; |