summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/pci.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2016-06-15 13:07:51 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-12-14 16:33:41 +0100
commit0b7589ecca2b6f962cf3314a3a5a675deeefb624 (patch)
tree0e76f58c9d6f5ae9cd9d172d3d6f9f11e29f8ba4 /arch/s390/include/asm/pci.h
parentd03502684b65492339d70f11aa8ed6df3961a3bf (diff)
downloadblackbird-op-linux-0b7589ecca2b6f962cf3314a3a5a675deeefb624.tar.gz
blackbird-op-linux-0b7589ecca2b6f962cf3314a3a5a675deeefb624.zip
s390/pci: query fmb length
Query the length of the fmb and abort fmb registration if the size of the associated measurement block is too small. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pci.h')
-rw-r--r--arch/s390/include/asm/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h
index 6611f798d2be..4e3186649578 100644
--- a/arch/s390/include/asm/pci.h
+++ b/arch/s390/include/asm/pci.h
@@ -133,6 +133,7 @@ struct zpci_dev {
/* Function measurement block */
struct zpci_fmb *fmb;
u16 fmb_update; /* update interval */
+ u16 fmb_length;
/* software counters */
atomic64_t allocated_pages;
atomic64_t mapped_pages;
OpenPOWER on IntegriCloud