q35: implement high SMRAM
commit64130fa4a1514ae7a580b8d46290a11784770600
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 31 Mar 2015 15:13:01 +0000 (31 17:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:36:39 +0000 (5 17:36 +0200)
tree63555f06f70a25dac3b0af5193815fd2383cf16c
parent3de70c0899db2712a5ae321093aa6173d6f76706
q35: implement high SMRAM

When H_SMRAME is 1, low memory at 0xa0000 is left alone by
SMM, and instead the chipset maps the 0xa0000-0xbffff window at
0xfeda0000-0xfedbffff.  This affects both the "non-SMM" view controlled
by D_OPEN and the SMM view controlled by G_SMRAME, so add two new
MemoryRegions and toggle the enabled/disabled state of all four
in mch_update_smram.

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