pci: improve w1c mask handling
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 14:01:25 +0000 (16:01 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (19:01 +0200)
commitf9aebe2ef52ff0dcb733999f57e00a7b430303c6
treed61b65ff0b3ac0421612a37f642c53a586608625
parent6bde6aaac6f2af14557ef65f5eb053cb135ca173
pci: improve w1c mask handling

- save/restore must not check w1c bits
  since they are in fact guest controlled
- clear w1c bits on reset

Note: for express there are different kinds of
reset, some leave part of config space alone.
We will likely need a sticky bit mask to implement this.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c