i386: Save EFER for 32-bit targets
commit89a44a103315267122119b4311218d00d2561ebe
authorPavel Dovgalyuk <pavel.dovgaluk@gmail.com>
Wed, 29 May 2019 12:41:56 +0000 (29 15:41 +0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 11 Jun 2019 13:17:47 +0000 (11 10:17 -0300)
tree0aafdb86732e2d04771a8b7205478a6e2b5fcce6
parent506174bf8219dc6d56d2b1f7e66e8cf39157466f
i386: Save EFER for 32-bit targets

i386 (32 bit) emulation uses EFER in wrmsr and in MMU fault
processing.
But it does not included in VMState, because "efer" field is disabled with

This patch adds a section for 32-bit targets which saves EFER when
it's value is non-zero.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <155913371654.8429.1659082639780315242.stgit@pasha-Precision-3630-Tower>
Reviewed-by: Peter Xu <peterx@redhat.com>
[ehabkost: indentation fix]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/machine.c