All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Arjan van de Ven <arjan-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: paravirtual drivers?
Date: Thu, 12 Apr 2007 12:42:10 -0500	[thread overview]
Message-ID: <461E6F72.2040805@us.ibm.com> (raw)
In-Reply-To: <1176394563.3417.7.camel-NIQFrBLA1CpScpXdPBN83iCwEArCW2h5@public.gmane.org>

Arjan van de Ven wrote:
> On Thu, 2007-04-12 at 10:05 -0500, Anthony Liguori wrote:
>   
>> Why not drive the backend from userspace? 
>>     
>
> (nothing in the concept requires it to be in the kernel, it just makes
> things a lot easier)
>
> Because I think the trend forward is to reduce the userspace dependency
> of kvm, not increase it.

There's no increase in dependency since block IO is already done in 
userspace.  Besides, I think the general Linux trend of moving things to 
userspace when there's no compelling reason to have them in kernel space 
trumps all other trends ;-)

>  And because you add context switches etc etc
>   

There's no context switch just a privilege transition.  Granted, 
privilege transitions aren't free but they're aren't that much compared 
to the cost of processing an IO request.

>>  Are you using a ring queue to 
>> transmit bio's from the guest to the host? 
>>     
>
> sort of; it's not quite a real ring (I'm using the block layer tagged
> queueing which is more efficient than a ring actually)
>   

I'm not sure I understand.  I guess I can just read the code.  What I 
was wondering was whether you put the bio's into a shared ring queue or 
whether you issued a hypercall per bio.

>>  What are you using for 
>> discovery (I assume PCI)?
>>     
>
> I just added a hypercall to enumerate. Adding a dummy PCI is probably
> needed for OS installers to auto-load the drivers.
>   

Ah, okay.

>> Could you post a copy of your driver on the list?  I think it would be 
>> good to discuss.
>>     
>
> I'll dig it up
>   

Excellent.  Thank you!

Regards,

Anthony Liguori


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2007-04-12 17:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12  9:38 paravirtual drivers? Tomasz Chmielewski
     [not found] ` <461DFE2E.3020805-Nem3ZqsbT/g@public.gmane.org>
2007-04-12  9:49   ` Avi Kivity
     [not found]     ` <461E008F.8030701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-12 10:00       ` Tomasz Chmielewski
     [not found]         ` <461E034F.9050608-Nem3ZqsbT/g@public.gmane.org>
2007-04-12 10:47           ` Rami Tamir
2007-04-12 11:30           ` Avi Kivity
2007-04-12  9:58   ` Dor Laor
     [not found]     ` <64F9B87B6B770947A9F8391472E032160B4A9CF0-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-04-12 12:31       ` Arjan van de Ven
     [not found]         ` <1176381086.3844.4.camel-NIQFrBLA1CpScpXdPBN83iCwEArCW2h5@public.gmane.org>
2007-04-12 12:40           ` Dor Laor
     [not found]             ` <64F9B87B6B770947A9F8391472E032160B4A9D60-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-04-12 14:57               ` Arjan van de Ven
     [not found]                 ` <1176389824.3417.0.camel-NIQFrBLA1CpScpXdPBN83iCwEArCW2h5@public.gmane.org>
2007-04-12 15:05                   ` Anthony Liguori
     [not found]                     ` <461E4AAF.8050606-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-04-12 16:16                       ` Arjan van de Ven
     [not found]                         ` <1176394563.3417.7.camel-NIQFrBLA1CpScpXdPBN83iCwEArCW2h5@public.gmane.org>
2007-04-12 17:42                           ` Anthony Liguori [this message]
2007-04-12 15:28                   ` Avi Kivity
2007-04-12 14:04   ` Anthony Liguori
     [not found]     ` <461E3C65.5080207-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-04-13 15:27       ` Tomasz Chmielewski
     [not found]         ` <461FA164.1090703-Nem3ZqsbT/g@public.gmane.org>
2007-04-13 15:38           ` Anthony Liguori

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=461E6F72.2040805@us.ibm.com \
    --to=aliguori-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=arjan-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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.