]> Git Repo - qemu.git/commit - hw/pci.h
qemu/pci: check constant registers on load
authorMichael S. Tsirkin <[email protected]>
Sun, 21 Jun 2009 16:49:40 +0000 (19:49 +0300)
committerAnthony Liguori <[email protected]>
Wed, 24 Jun 2009 14:09:14 +0000 (09:09 -0500)
commitbd4b65ee5e5f750da709ac10c70266876e515c23
treef780e46ae2bf055c0ea288603e9eef36a7d55fb8
parent6f4cbd3950b10ceec95fcda3946839be2e009027
qemu/pci: check constant registers on load

Add "cmask" table of constant register masks: if a bit is not writeable
and is set in cmask table, this bit is checked on load.  An attempt to
load an image that would change such a register causes load to fail.
Use this table to make sure that load does not modify registers that
guest can not change (directly or indirectly).

Note: we can't just assume that read-only registers never change,
because the guest could change a register indirectly.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/pci.c
hw/pci.h
This page took 0.025608 seconds and 4 git commands to generate.