• M
    qemu/pci: check constant registers on load · bd4b65ee
    Michael S. Tsirkin 提交于
    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: NMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    bd4b65ee
pci.h 10.3 KB