mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
KVM: s390: Use the read_guest_abs() in guest debug functions
The guest debug functions work on absolute addresses and should use the read_guest_abs() function rather than general read_guest() that works with logical addresses. Cc: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
16a0c4c3aa
commit
1f289a8429
1 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,7 @@ static int __import_wp_info(struct kvm_vcpu *vcpu,
|
||||||
if (!wp_info->old_data)
|
if (!wp_info->old_data)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
/* try to backup the original value */
|
/* try to backup the original value */
|
||||||
ret = read_guest(vcpu, wp_info->phys_addr, wp_info->old_data,
|
ret = read_guest_abs(vcpu, wp_info->phys_addr, wp_info->old_data,
|
||||||
wp_info->len);
|
wp_info->len);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
kfree(wp_info->old_data);
|
kfree(wp_info->old_data);
|
||||||
|
@ -362,7 +362,7 @@ static struct kvm_hw_wp_info_arch *any_wp_changed(struct kvm_vcpu *vcpu)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* refetch the wp data and compare it to the old value */
|
/* refetch the wp data and compare it to the old value */
|
||||||
if (!read_guest(vcpu, wp_info->phys_addr, temp,
|
if (!read_guest_abs(vcpu, wp_info->phys_addr, temp,
|
||||||
wp_info->len)) {
|
wp_info->len)) {
|
||||||
if (memcmp(temp, wp_info->old_data, wp_info->len)) {
|
if (memcmp(temp, wp_info->old_data, wp_info->len)) {
|
||||||
kfree(temp);
|
kfree(temp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue