Re: [libvirt] [PATCH 1/6] Add pci utility functions

2009-03-02 Thread Daniel Veillard
On Thu, Feb 26, 2009 at 02:56:13PM +, Daniel P. Berrange wrote: +/* PM12 3.2.4 Power Management Control/Status (Offset = 4) */ +#define PCI_PM_CTRL4/* PM control and status register */ +#define PCI_PM_CTRL_STATE_MASK0x3 /* Current power state (D0 to D3)

Re: [libvirt] [PATCH 1/6] Add pci utility functions

2009-03-02 Thread Daniel Veillard
On Thu, Feb 26, 2009 at 02:56:13PM +, Daniel P. Berrange wrote: On Wed, Feb 25, 2009 at 08:17:08PM +, Mark McLoughlin wrote: Add implementations of dettach, reattach and reset for PCI devices. [...] Signed-off-by: Mark McLoughlin mar...@redhat.com In absence of any objections, I

Re: [libvirt] [PATCH 1/6] Add pci utility functions

2009-02-26 Thread Daniel P. Berrange
On Wed, Feb 25, 2009 at 08:17:08PM +, Mark McLoughlin wrote: Add implementations of dettach, reattach and reset for PCI devices. Background to this code can be found here: http://marc.info/?l=kvmm=123454366317045 Some notes: * pci-stub was first introduced in 2.6.29; if it's

[libvirt] [PATCH 1/6] Add pci utility functions

2009-02-25 Thread Mark McLoughlin
Add implementations of dettach, reattach and reset for PCI devices. Background to this code can be found here: http://marc.info/?l=kvmm=123454366317045 Some notes: * pci-stub was first introduced in 2.6.29; if it's not available, then dettach can only unbind the device from the