[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM |
Date: |
Mon, 18 Oct 2010 21:03:25 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Oct 18, 2010 at 01:42:06PM -0500, Anthony Liguori wrote:
> >>+/* Patch the PCI vendor and device ids in a PCI rom image if necessary.
> >>+ This is needed for an option rom which is used for more than one
> >>device. */
> >>+static void pci_patch_ids(PCIDevice *pdev, uint8_t *ptr, int size)
> >let's return an error code on malformed roms so management can detect errors?
>
> A bad/missing PnP header does not mean it's an invalid ROM.
I don't see this as a generic capability - rather a specific
hack that helps reduce some duplication for eepro100 and friends.
As such, if we can't patch the id we know it's an invalid file.
--
MST
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, (continued)
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Gerd Hoffmann, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Stefan Weil, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Gerd Hoffmann, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Stefan Weil, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Gerd Hoffmann, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Gerd Hoffmann, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM, Stefan Weil, 2010/10/18
- [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Stefan Weil, 2010/10/18
- [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Michael S. Tsirkin, 2010/10/18
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/18
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM,
Michael S. Tsirkin <=
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Stefan Weil, 2010/10/18
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/18
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Gerd Hoffmann, 2010/10/19
- Re: [Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Stefan Weil, 2010/10/18
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Michael S. Tsirkin, 2010/10/19
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Stefan Weil, 2010/10/19
- Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM, Anthony Liguori, 2010/10/19