diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2009-06-21 19:45:18 +0300 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-24 09:09:14 -0500 |
| commit | b7ee1603c16c1feb0d439d2ddf6cf824119d0aab (patch) | |
| tree | e48541b3e3a0b1ef984ca3d2e4a88d4539c19b46 /hw/virtio.c | |
| parent | 1b64fcae87d120335b16feaa8ab2887ab9d7591a (diff) | |
| download | focaccia-qemu-b7ee1603c16c1feb0d439d2ddf6cf824119d0aab.tar.gz focaccia-qemu-b7ee1603c16c1feb0d439d2ddf6cf824119d0aab.zip | |
qemu/pci: make default_write_config use mask table
Change much of hw/pci to use symbolic constants and a table-driven design: add a mask table with writable bits set and readonly bits unset. Detect change by comparing original and new registers. This makes it easy to support capabilities where read-only/writeable bit layout differs between devices, depending on capabilities present. As a result, writing a single byte in BAR registers now works as it should. Writing to upper limit registers in the bridge also works as it should. Code is also shorter. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio.c')
0 files changed, 0 insertions, 0 deletions