Skip to content

Commit

Permalink
goldfish: add QEMU pipe driver
Browse files Browse the repository at this point in the history
A QEMU pipe is a very fast communication channel between the
guest system and the emulator. Usage from the guest is simply
something like;

  // connect to special device
  fd = open("/dev/qemu_pipe", O_RDWR);

  // tell which service we want to talk to (must be zero-terminated)
  write(fd, "pipeName", strlen("pipeName")+1);

  // do read()/write() through fd now
  ...

  // close channel
  close(fd);

Signed-off-by: David 'Digit' Turner <digit@android.com>
[Added support for parameter buffers for speed]
igned-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Nakajima, Jun <jun.nakajima@intel.com>
[Ported to 3.6]
Signed-off-by: Tom Keel <thomas.keel@intel.com>
[Ported to 3.7, moved to platform/goldfish]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
David 'Digit' Turner authored and Greg Kroah-Hartman committed Jan 24, 2013
1 parent e809c22 commit c89f275
Show file tree
Hide file tree
Showing 4 changed files with 621 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/platform/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if X86
source "drivers/platform/x86/Kconfig"
endif
if GOLDFISH
source "drivers/platform/goldfish/Kconfig"
endif

5 changes: 5 additions & 0 deletions drivers/platform/goldfish/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config GOLDFISH_PIPE
tristate "Goldfish virtual device for QEMU pipes"
---help---
This is a virtual device to drive the QEMU pipe interface used by
the Goldfish Android Virtual Device.
1 change: 1 addition & 0 deletions drivers/platform/goldfish/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# Makefile for Goldfish platform specific drivers
#
obj-$(CONFIG_GOLDFISH) += pdev_bus.o
obj-$(CONFIG_GOLDFISH_PIPE) += goldfish_pipe.o
Loading

0 comments on commit c89f275

Please sign in to comment.