[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v4 01/15] pci: make pci_del_capability() update
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] Re: [PATCH v4 01/15] pci: make pci_del_capability() update for w1cmask |
Date: |
Mon, 18 Oct 2010 08:06:19 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Oct 18, 2010 at 12:17:42PM +0900, Isaku Yamahata wrote:
> When deleting pci capability, w1cmask should be 0
> to make those registers writablein addition to wmask.
>
> Signed-off-by: Isaku Yamahata <address@hidden>
Applied (typo in commit message fixed).
> ---
> hw/pci.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/hw/pci.c b/hw/pci.c
> index abddc6d..e3462a9 100644
> --- a/hw/pci.c
> +++ b/hw/pci.c
> @@ -1745,6 +1745,7 @@ void pci_del_capability(PCIDevice *pdev, uint8_t
> cap_id, uint8_t size)
> pdev->config[prev] = pdev->config[offset + PCI_CAP_LIST_NEXT];
> /* Make capability writeable again */
> memset(pdev->wmask + offset, 0xff, size);
> + memset(pdev->w1cmask + offset, 0, size);
> /* Clear cmask as device-specific registers can't be checked */
> memset(pdev->cmask + offset, 0, size);
> memset(pdev->used + offset, 0, size);
> --
> 1.7.1.1
- [Qemu-devel] [PATCH v4 00/15] pcie port switch emulators, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 10/15] pcie port: define struct PCIEPort/PCIESlot and helper functions, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 12/15] x3130: pcie upstream port, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 01/15] pci: make pci_del_capability() update for w1cmask, Isaku Yamahata, 2010/10/17
- [Qemu-devel] Re: [PATCH v4 01/15] pci: make pci_del_capability() update for w1cmask,
Michael S. Tsirkin <=
- [Qemu-devel] [PATCH v4 08/15] pcie: helper functions for pcie capability and extended capability, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 15/15] pcie/aer: glue aer error injection into qemu monitor, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 14/15] pcie/hotplug: introduce pushing attention button command, Isaku Yamahata, 2010/10/17
- [Qemu-devel] [PATCH v4 05/15] pci/bridge: fix pci_bridge_reset(), Isaku Yamahata, 2010/10/17
[Qemu-devel] [PATCH v4 02/15] pci: introduce helper functions to clear/set bits in configuration space, Isaku Yamahata, 2010/10/17