KVM: x86: abstract the operation for read/write emulation
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 13 Jul 2011 06:31:50 +0000 (14:31 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:17 +0000 (19:17 +0300)
commit77d197b2ca37b33b0461ab1e2dbe40cbe4a6fd6a
tree05ea5cbfd731818e91b4b6d16cf55905db29aea1
parentca7d58f375c650cf36900cb1da1ca2cc99b13393
KVM: x86: abstract the operation for read/write emulation

The operations of read emulation and write emulation are very similar, so we
can abstract the operation of them, in larter patch, it is used to cleanup the
same code

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c