q35: implement SMRAM.D_LCK
commit68c77acfb18d28933f17b1c2a842bd936ce7223b
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Apr 2015 12:03:22 +0000 (14 14:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:36:40 +0000 (5 17:36 +0200)
treef1188d1cb28446e862ce9c92f2131389a90e4bcc
parentb66a67d7519cb7f980885af5391b1103c42e9b6d
q35: implement SMRAM.D_LCK

Once the SMRAM.D_LCK bit has been set by the guest several bits in SMRAM
and ESMRAMC become readonly until the next machine reset.  Implement
this by updating the wmask accordingly when the guest sets the lock bit.
As the lock it itself is locked down too we don't need to worry about
the guest clearing the lock bit.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/pci-host/q35.c
include/hw/pci-host/q35.h