summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorMichael Mueller <mimu@linux.vnet.ibm.com>2014-03-13 19:29:09 +0100
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-04-22 13:24:53 +0200
commita86dcc2482cf29ffcf6fbc174ce55e4f5f18cd8b (patch)
tree825e1fb4b8ef8bd506c3d72e69ac4c95d415b56e /arch/s390
parent67335e63c9ef59e97b45a08b4a6a93767762031d (diff)
downloadop-kernel-dev-a86dcc2482cf29ffcf6fbc174ce55e4f5f18cd8b.zip
op-kernel-dev-a86dcc2482cf29ffcf6fbc174ce55e4f5f18cd8b.tar.gz
KVM: s390: replace TDB_ADDR by __LC_PGM_TDB
The generically assembled low core labels already contain the address for the TDB. Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kvm/intercept.c3
-rw-r--r--arch/s390/kvm/kvm-s390.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c
index f61c800..f391604 100644
--- a/arch/s390/kvm/intercept.c
+++ b/arch/s390/kvm/intercept.c
@@ -16,6 +16,7 @@
#include <linux/pagemap.h>
#include <asm/kvm_host.h>
+#include <asm/asm-offsets.h>
#include "kvm-s390.h"
#include "gaccess.h"
@@ -193,7 +194,7 @@ static int handle_prog(struct kvm_vcpu *vcpu)
if (current->thread.per_flags & PER_FLAG_NO_TE)
goto skip_itdb;
itdb = (struct kvm_s390_itdb *)vcpu->arch.sie_block->itdba;
- rc = write_guest_lc(vcpu, TDB_ADDR, itdb, sizeof(*itdb));
+ rc = write_guest_lc(vcpu, __LC_PGM_TDB, itdb, sizeof(*itdb));
if (rc)
return rc;
memset(itdb, 0, sizeof(*itdb));
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h
index c93ed5f..9b5680d 100644
--- a/arch/s390/kvm/kvm-s390.h
+++ b/arch/s390/kvm/kvm-s390.h
@@ -28,7 +28,6 @@ int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu);
/* Transactional Memory Execution related macros */
#define IS_TE_ENABLED(vcpu) ((vcpu->arch.sie_block->ecb & 0x10))
-#define TDB_ADDR 0x1800UL
#define TDB_FORMAT1 1
#define IS_ITDB_VALID(vcpu) ((*(char *)vcpu->arch.sie_block->itdba == TDB_FORMAT1))
OpenPOWER on IntegriCloud