Re: [PATCH] virtio config_ops refactoring

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anthony Liguori
Date: Friday, November 9, 2007 - 4:45 pm

Rusty Russell wrote:

The problem is the ABI.  We can either require that PCI configuration 
values are accessed with natural instructions, or it makes very little 
sense to use the PCI configuration space for virtio configuration 
information.  If we really can't find a way to do this (and I think my 
current implementation is the best compromise since it hides this from 
everything else), then I think I'll switch over to just writing a PFN 
into a PCI configuration slot and then have that page store the virtio 
configuration information (much like is done with lguest).

Either virtio config looks like a shared memory area (as lguest 
currently implements it), or it looks like hardware registers (like 
virtio-pci implements it).  After thinking about it for a while, I don't 
think the two can be reconciled.  There are subtle differences between 
the two that can't be hidden in the virtio interface.  For instance, in 
the PCI model, you get notified when values are read/written whereas in 
the lguest model, you don't and need explicit status bits.

If you're very against the switch() magic, then I'll switch over to just 
using a shared memory area.

Regards,

Anthony Liguori


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] virtio config_ops refactoring, Anthony Liguori, (Wed Nov 7, 7:41 pm)
Re: [PATCH] virtio config_ops refactoring, Rusty Russell, (Thu Nov 8, 3:24 pm)
Re: [PATCH] virtio config_ops refactoring, Anthony Liguori, (Thu Nov 8, 3:33 pm)
Re: [Lguest] [PATCH] virtio config_ops refactoring, ron minnich, (Thu Nov 8, 3:47 pm)
Re: [Lguest] [PATCH] virtio config_ops refactoring, Anthony Liguori, (Thu Nov 8, 3:49 pm)
Re: [PATCH] virtio config_ops refactoring, Rusty Russell, (Fri Nov 9, 4:54 am)
Re: [PATCH] virtio config_ops refactoring, Anthony Liguori, (Fri Nov 9, 4:45 pm)
Re: [PATCH] virtio config_ops refactoring, Rusty Russell, (Sat Nov 10, 12:58 am)
Re: [PATCH] virtio config_ops refactoring, Anthony Liguori, (Sat Nov 10, 3:08 pm)