From: Cam Macdonell <cam@cs.ualberta.ca>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>, kvm@vger.kernel.org
Subject: Re: [PATCH RFC] Driver to support shared memory with interrupts with broadcast
Date: Thu, 30 Jul 2009 14:36:01 -0600 [thread overview]
Message-ID: <4A720431.6020407@cs.ualberta.ca> (raw)
In-Reply-To: <20090730202254.GA3949@redhat.com>
Michael S. Tsirkin wrote:
> On Thu, Jul 30, 2009 at 01:29:52PM -0500, Anthony Liguori wrote:
>> Cam Macdonell wrote:
>>> This driver allows the guest VM to access shared memory between other guest
>>> that is a POSIX shared memory object on the host. The driver can also send
>>> interrupts by writing to the DoorBell register.
>>>
>>> With interrupts, the ioctl must specify the ID of the VM to receive the
>>> interrupt or '255' for broadcast to all active VMs. The 'arg' parameter is the
>>> destination VM and 'cmd' is the interrupt code. The value written to the
>>> register is a bit messy. 32-bits are written to the register, the upper 16 are
>>> the destination VM, and the lower 16 are the interrupt 'code' that the
>>> destination guest will receive. Implemented codes (see the interrupt handler)
>>> either call up on the device's semaphore or wake up on the wait_event queue.
>>> These codes' uses are at the discretion of the driver so they could be
>>> customized.
>>>
>>> For ioctls that read values from the device (such as for getting the global ID
>>> of the guest) the arg parameter is unused.
>>>
>>> Cam
>>>
>> I think you should just use Michael's uio_pci driver. I don't think we
>> have a need for a new kernel interface.
>
> If that's what you want to do, an example device that generates
> interrupts in response to config writes can be found here:
> http://www.archivum.info/qemu-devel@nongnu.org/2009-07/01548/%5BQemu-devel%5D_%5BPATCH%5D_qemu:_test-irq_device
>
Thank you, I'll have a look.
prev parent reply other threads:[~2009-07-30 20:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 16:50 [PATCH RFC] Driver to support shared memory with interrupts with broadcast Cam Macdonell
2009-07-30 18:29 ` Anthony Liguori
2009-07-30 20:22 ` Michael S. Tsirkin
2009-07-30 20:36 ` Cam Macdonell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A720431.6020407@cs.ualberta.ca \
--to=cam@cs.ualberta.ca \
--cc=anthony@codemonkey.ws \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.