diff options
author | Xiao Feng Ren <renxiaof@linux.vnet.ibm.com> | 2017-05-17 02:48:03 +0200 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-05-19 12:29:01 +0200 |
commit | 274250c30158f60aefb46088a7bb0d711061226c (patch) | |
tree | 84cc4a0e08cc397588a7610468a58d5a66d98d7a /target | |
parent | 74c98e20a604b9db58284b8727688df70e9bf643 (diff) |
s390x/css: add s390-squash-mcss machine option
We want to support real (i.e. not virtual) channel devices
even for guests that do not support MCSS-E (where guests may
see devices from any channel subsystem image at once). As all
virtio-ccw devices are in css 0xfe (and show up in the default
css 0 for guests not activating MCSS-E), we need an option to
squash both the virtio subchannels and e.g. passed-through
subchannels from their real css (0-3, or 0 for hosts not
activating MCSS-E) into the default css. This will be
exploited in a later patch.
Signed-off-by: Xiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170517004813.58227-4-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/s390x/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 240b8a5c22..e27d9d874a 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -1256,6 +1256,16 @@ static inline void s390_crypto_reset(void) } } +static inline bool s390_get_squash_mcss(void) +{ + if (object_property_get_bool(OBJECT(qdev_get_machine()), "s390-squash-mcss", + NULL)) { + return true; + } + + return false; +} + /* machine check interruption code */ /* subclasses */ |