diff options
author | Suraj Jitindar Singh <sjitindarsingh@gmail.com> | 2019-03-01 13:43:16 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-12 12:07:49 +1100 |
commit | 7d050527e3f5cadbf9db3bce09409fb4e9259997 (patch) | |
tree | 04a611677693b7cc316124bf48f246add523d257 /default-configs | |
parent | a8dafa525181e57405b7ef4bf7c212bf5f6d8ca1 (diff) | |
download | qemu-7d050527e3f5cadbf9db3bce09409fb4e9259997.zip qemu-7d050527e3f5cadbf9db3bce09409fb4e9259997.tar.gz qemu-7d050527e3f5cadbf9db3bce09409fb4e9259997.tar.bz2 |
target/ppc: Implement large decrementer support for KVM
Implement support to allow KVM guests to take advantage of the large
decrementer introduced on POWER9 cpus.
To determine if the host can support the requested large decrementer
size, we check it matches that specified in the ibm,dec-bits device-tree
property. We also need to enable it in KVM by setting the LPCR_LD bit in
the LPCR. Note that to do this we need to try and set the bit, then read
it back to check the host allowed us to set it, if so we can use it but
if we were unable to set it the host cannot support it and we must not
use the large decrementer.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190301024317.22137-3-sjitindarsingh@gmail.com>
[dwg: Small style fixes]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'default-configs')
0 files changed, 0 insertions, 0 deletions