From: Nick Logan <nick_logan@symantec.com>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: Passing ioctls between front-end and back-end drivers
Date: Mon, 21 Nov 2005 17:24:07 +0000 [thread overview]
Message-ID: <438202B7.4060001@symantec.com> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D32EAF3@liverpoolst.ad.cl.cam.ac.uk>
Ah, that explains why I couldn't find out how to do it. The ioctl's that
I am thinking of are vendor specific. I'm looking at supporting devices
in Dom0 that can be accessed from the guest domains and part of the
driver functionality requires ioctls to get/set attributes etc. It would
be up to the backend to determine if the ioctls were valid or not. I
agree that this is rather Linux/Unix specific but in my case it's a
fundamental part of the driver.
Maybe some of the attributes can be passed via Xenstore, I'll investigate.
Nick
Ian Pratt wrote:
>>I see that the block driver supports requests for READ, WRITE
>>and PROBE.
>>Is there any recommended way to pass ioctl requests from the
>>front-end to be executed by the back-end driver?
>>
>>
>
>Currently, no.
>
>Creating a new request operation type that allows the front end to pass
>through ioctls would be useful, but it ends up being rather Linux
>specific. Further, for security reasons the backend is going to need to
>be able to decode the ioctl and decide whether its safe to issue or not.
>It would be better to have a 'wire protocol' for this.
>
>A mechanism for passing scsi commands through would be better, but even
>then there are a bunch of vendor-specific ones its not entirely easy to
>tell whether they should be allowed by a guest or not. I suspect we need
>to draw up a list of what "ioctls" should be allowed. What one do you
>want to perform?
>
>Ian
>
>
next prev parent reply other threads:[~2005-11-21 17:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 16:03 Passing ioctls between front-end and back-end drivers Ian Pratt
2005-11-21 17:24 ` Nick Logan [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-21 15:17 Nick Logan
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=438202B7.4060001@symantec.com \
--to=nick_logan@symantec.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.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.