On Monday 02 June 2008 12:48:50 Han, Weidong wrote:
> Amit Shah wrote:

> > The host ethernet driver is to be removed before doing the
> > passthrough.
>
> This operation is rough. Do you have any plan to improve it? For
> example, don't load drivers for the devices which will be assigned to
> guests when host booting, or ideally unbind driver devices dynamically
> before assignment.

I have a few options in mind:
- failing registration of a device and loading of guest if an already-loaded 
driver is found
- Not worry about this case and leave it to the administrator

The first option can be enforced by calls to pci_enable_device() and 
pci_request_regions(). This can solve the problem of assigning multiple 
devices of the same guest as well.

Dynamically unbinding devices is prone to a lot of errors and assumptions and 
such policy shouldn't be enforced. We should either fail the assignment and 
let the administrator take care of doing the right thing and start the guest 
or just not launch the guest at all.

Amit.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to