All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Fwd: IVSHMEM send interrupts from the kernel
       [not found] <CAK7rcp8xjm3cuVLeLFFKRQ8sqXNV2S=v2VChSfAWo37RejmF1Q@mail.gmail.com>
@ 2016-12-03 18:55 ` Kenneth Adam Miller
  2016-12-05  7:31   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Adam Miller @ 2016-12-03 18:55 UTC (permalink / raw)
  To: buildroot

Hello,


I am following the blogs about ivshmem at nairobi-embedded.org,
I am interested for help on how I can send interrupts from one
QEMU guest directly through to another guest.

I'll explain my setup and what all I've done. My
setup is pretty consistent and unchanging in that the memory flows
between two QEMU guests will not change so much.

One thing I've tried to do is follow the example set by uio_send.c at:

https://github.com/henning-schild/ivshmem-guest-code/blob/master/uio/tests/Interrupts/VM/uio_send.c

And write to the memory address just as it did, but in the kernel
land. I thought that it would be mmio memory, so that I should use the
kernel writel call, but I'm not sure that I can get the cmd and dest
parameters correct in order to get qemu to send the interrupt as it
should. Just to be clear, I tried to get variations of Line 56 in
uio_send to work in my kernel. I have tried using both uio_send and
using my kernel function, and explored much more cmd/dest combinations
using uio_send. I've also tried one of your programs for qeventfd
sending, to be run on the host and received in the guest.

I start my QEMU guest with the following arguments:

-chardev socket,path=/tmp/ivshmem_socket,id=shm_in -device
ivshmem,shm=shm_in,size=4 -chardev
socket,path=/tmp/ivshmem_socket,id=shm_out -device
ivshmem,shm=shm_out,size=4

What I would like is for the shm_out shared memory to be able to send
interrupts to the QEMU guest that shares it's ivshmem region. I don't
understand the chardev option id, or what that means so I've tried
various things and among the latest is to name it according to the
ivshmem shm region name. I'm not sure if that's right, or if I should
be using numbers.

In any case, I still don't quite understand how the ID thing works
between the ivshmem_server on the host and the guest, both the command
line chardev and the ID the server assigns and how I can fit that into
my workflow. I'm pretty sure that the IDs that the ivshmem_server
process assigns to the QEMU guests is first come first serve and
distinct from the chardev ID, but I am not sure.

Is there something like an example where the actual parameters to the
QEMU process aren't abstracted out?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Fwd: IVSHMEM send interrupts from the kernel
  2016-12-03 18:55 ` [Buildroot] Fwd: IVSHMEM send interrupts from the kernel Kenneth Adam Miller
@ 2016-12-05  7:31   ` Peter Korsgaard
  2016-12-05 13:15     ` Kenneth Adam Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2016-12-05  7:31 UTC (permalink / raw)
  To: buildroot

>>>>> "Kenneth" == Kenneth Adam Miller <kennethadammiller@gmail.com> writes:

 > Hello,
 > I am following the blogs about ivshmem at nairobi-embedded.org,
 > I am interested for help on how I can send interrupts from one
 > QEMU guest directly through to another guest.

Ehh, did you send this mail to the Buildroot list on purpose or was this
meant for the QEMU list?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] Fwd: IVSHMEM send interrupts from the kernel
  2016-12-05  7:31   ` Peter Korsgaard
@ 2016-12-05 13:15     ` Kenneth Adam Miller
  0 siblings, 0 replies; 3+ messages in thread
From: Kenneth Adam Miller @ 2016-12-05 13:15 UTC (permalink / raw)
  To: buildroot

I think I meant kernel newbies and wrote buildroot instead sorry.

On Dec 5, 2016 2:31 AM, "Peter Korsgaard" <peter@korsgaard.com> wrote:

> >>>>> "Kenneth" == Kenneth Adam Miller <kennethadammiller@gmail.com>
> writes:
>
>  > Hello,
>  > I am following the blogs about ivshmem at nairobi-embedded.org,
>  > I am interested for help on how I can send interrupts from one
>  > QEMU guest directly through to another guest.
>
> Ehh, did you send this mail to the Buildroot list on purpose or was this
> meant for the QEMU list?
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161205/118fb0c3/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-05 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAK7rcp8xjm3cuVLeLFFKRQ8sqXNV2S=v2VChSfAWo37RejmF1Q@mail.gmail.com>
2016-12-03 18:55 ` [Buildroot] Fwd: IVSHMEM send interrupts from the kernel Kenneth Adam Miller
2016-12-05  7:31   ` Peter Korsgaard
2016-12-05 13:15     ` Kenneth Adam Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.