KVM: use 'writable' as a hint to map writable pfn
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 03:00:49 +0000 (11:00 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:55 +0000 (15:08 +0300)
In current code, we always map writable pfn for the read fault, in order
to support readonly memslot, we map writable pfn only if 'writable'
is not NULL

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found