Repository navigation
Commit ca7d58f
KVM: x86: fix broken read emulation spans a page boundary
If the range spans a page boundary, the mmio access can be broke, fix it as
write emulation.
And we already get the guest physical address, so use it to read guest data
directly to avoid walking guest page table again
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>1 parent 9be3be1 commit ca7d58f
1 file changed
Lines changed: 31 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
4048 | | - | |
4049 | | - | |
4050 | | - | |
4051 | | - | |
4052 | | - | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
4053 | 4053 | | |
4054 | | - | |
4055 | 4054 | | |
4056 | 4055 | | |
4057 | 4056 | | |
| |||
4071 | 4070 | | |
4072 | 4071 | | |
4073 | 4072 | | |
4074 | | - | |
4075 | | - | |
| 4073 | + | |
4076 | 4074 | | |
4077 | 4075 | | |
4078 | 4076 | | |
| |||
4101 | 4099 | | |
4102 | 4100 | | |
4103 | 4101 | | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
4104 | 4127 | | |
4105 | 4128 | | |
4106 | 4129 | | |
| |||
0 commit comments