Skip to content

Commit

Permalink
xen/9pfs: build and register Xen 9pfs backend
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Stabellini <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
CC: [email protected]
CC: [email protected]
CC: Aneesh Kumar K.V <[email protected]>
CC: Greg Kurz <[email protected]>
  • Loading branch information
sstabellini committed Apr 25, 2017
1 parent 4476e09 commit e737b6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions hw/9pfs/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ common-obj-y += coth.o cofs.o codir.o cofile.o
common-obj-y += coxattr.o 9p-synth.o
common-obj-$(CONFIG_OPEN_BY_HANDLE) += 9p-handle.o
common-obj-y += 9p-proxy.o
common-obj-$(CONFIG_XEN) += xen-9p-backend.o

obj-y += virtio-9p-device.o
3 changes: 3 additions & 0 deletions hw/xen/xen_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,9 @@ void xen_be_register_common(void)
xen_be_register("console", &xen_console_ops);
xen_be_register("vkbd", &xen_kbdmouse_ops);
xen_be_register("qdisk", &xen_blkdev_ops);
#ifdef CONFIG_VIRTFS
xen_be_register("9pfs", &xen_9pfs_ops);
#endif
#ifdef CONFIG_USB_LIBUSB
xen_be_register("qusb", &xen_usb_ops);
#endif
Expand Down
3 changes: 3 additions & 0 deletions include/hw/xen/xen_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ extern struct XenDevOps xen_console_ops; /* xen_console.c */
extern struct XenDevOps xen_kbdmouse_ops; /* xen_framebuffer.c */
extern struct XenDevOps xen_framebuffer_ops; /* xen_framebuffer.c */
extern struct XenDevOps xen_blkdev_ops; /* xen_disk.c */
#ifdef CONFIG_VIRTFS
extern struct XenDevOps xen_9pfs_ops; /* xen-9p-backend.c */
#endif
extern struct XenDevOps xen_netdev_ops; /* xen_nic.c */
#ifdef CONFIG_USB_LIBUSB
extern struct XenDevOps xen_usb_ops; /* xen-usb.c */
Expand Down

0 comments on commit e737b6d

Please sign in to comment.