b58deb344d
qemu/queue.h: leave head structs anonymous unless necessary
...
Most list head structs need not be given a name. In most cases the
name is given just in case one is going to use QTAILQ_LAST, QTAILQ_PREV
or reverse iteration, but this does not apply to lists of other kinds,
and even for QTAILQ in practice this is only rarely needed. In addition,
we will soon reimplement those macros completely so that they do not
need a name for the head struct. So clean up everything, not giving a
name except in the rare case where it is necessary.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2019-01-11 15:46:55 +01:00
3a6c9172ac
xen: create qdev for each backend device
...
Create a qdev plugged to the xen-sysbus for each new backend device.
This device can be used as a parent for all needed devices of that
backend. The id of the new device will be "xen-<type>-<dev>" with
<type> being the xen backend type (e.g. "qdisk") and <dev> the xen
backend number of the type under which it is to be found in xenstore.
Signed-off-by: Juergen Gross <jgross@suse.com >
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
2016-11-22 10:29:39 -08:00
b586363418
hw/xen/xen_pvdev: Include qemu/log.h for qemu_log_vprintf()
...
Olaf Hering reported a build failure due to an undefined reference
to 'qemu_log_vprintf'. Explicitely including qemu/log.h seems to
fix the issue.
Signed-off-by: Thomas Huth <thuth@redhat.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Acked-by: Stefano Stabellini <sstabellini@kernel.org >
Tested-by: Olaf Hering <olaf@aepfle.de >
2016-11-02 12:26:04 -07:00
71981364b6
xen: Rename xen_be_del_xendev
...
Prepare xen_be_del_xendev to be shared with frontends:
* xen_be_del_xendev -> xen_pv_del_xendev
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:54:49 -07:00
fa0253d066
xen: Rename xen_be_find_xendev
...
Prepare xen_be_find_xendev to be shared with frontends:
* xen_be_find_xendev -> xen_pv_find_xendev
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:54:39 -07:00
49442d9621
xen: Rename xen_be_evtchn_event
...
Prepare xen_be_evtchn_event to be shared with frontends:
* xen_be_evtchn_event -> xen_pv_evtchn_event
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:54:31 -07:00
ba18fa2a8c
xen: Rename xen_be_send_notify
...
Prepare xen_be_send_notify to be shared with frontends:
* xen_be_send_notify -> xen_pv_send_notify
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:54:21 -07:00
65807f4b6c
xen: Rename xen_be_unbind_evtchn
...
Prepare xen_be_unbind_evtchn to be shared with frontends:
* xen_be_unbind_evtchn -> xen_pv_unbind_evtchn
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:54:11 -07:00
96c77dba6f
xen: Rename xen_be_printf to xen_pv_printf
...
Prepare xen_be_printf to be used by both backend and frontends:
* xen_be_printf -> xen_pv_printf
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:53:50 -07:00
ecf7981891
xen: Move xenstore cleanup and mkdir functions
...
The name of the functions moved to xen_pvdev.c:
* xenstore_cleanup_dir
* xen_config_cleanup
* xenstore_mkdir
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:53:40 -07:00
148512e062
xen: Prepare xendev qtail to be shared with frontends
...
* move xendevs qtail to xen_pvdev.c
* change xen_be_get_xendev to use a new function: xen_pv_insert_xendev
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:53:25 -07:00
31c17aa5c3
xen: Move evtchn functions to xen_pvdev.c
...
The name of the functions moved:
* xen_be_evtchn_event
* xen_be_unbind_evtchn
* xen_be_send_notify
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:53:16 -07:00
046db9bec5
xen: Move xenstore_update to xen_pvdev.c
...
* xenstore_update -> xen_pvdev.c
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:53:08 -07:00
f0021dba62
xen: Create a new file xen_pvdev.c
...
The purpose of the new file is to store generic functions shared by frontend
and backends such as xenstore operations, xendevs.
Signed-off-by: Quan Xu <quan.xu@intel.com >
Signed-off-by: Emil Condrea <emilcondrea@gmail.com >
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org >
Signed-off-by: Quan Xu <xuquan8@huawei.com >
Acked-by: Anthony PERARD <anthony.perard@citrix.com >
2016-10-28 17:52:48 -07:00