ich9: implement SMI_LOCK
commit11e66a15a084cb0820dba13f4ea3b15b0512fd39
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 6 May 2015 08:58:30 +0000 (6 10:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 17:45:13 +0000 (5 19:45 +0200)
tree8735fe3061fe96f8e5c6fc36a12162e783051e76
parentbafc90bdc594a4d04db846bd8712bdcec59678a8
ich9: implement SMI_LOCK

Add write mask for the smi enable register, so we can disable write
access to certain bits.  Open all bits on reset.  Disable write access
to GBL_SMI_EN when SMI_LOCK (in ich9 lpc pci config space) is set.
Write access to SMI_LOCK itself is disabled too.

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/acpi/ich9.c
hw/isa/lpc_ich9.c
include/hw/acpi/ich9.h
include/hw/i386/ich9.h