[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] e05fba: target/ppc: correct htab shift for ha
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] e05fba: target/ppc: correct htab shift for hash on radix |
Date: |
Tue, 14 Nov 2017 08:09:48 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: e05fba5004676cd0fa7c47b623cb0a14ad1feed8
https://github.com/qemu/qemu/commit/e05fba5004676cd0fa7c47b623cb0a14ad1feed8
Author: Sam Bobroff <address@hidden>
Date: 2017-11-14 (Tue, 14 Nov 2017)
Changed paths:
M hw/ppc/spapr_hcall.c
Log Message:
-----------
target/ppc: correct htab shift for hash on radix
KVM HV will soon support running a guest in hash mode on a POWER9 host
running in radix mode (see [1]), however the guest currently fails to
boot.
This is because the "htab_shift" value (the size of the MMU's hash
table) is added to the device tree before KVM has had a chance to
change it. If the host is in hash mode, KVM does not need to change it
and so the problem is not seen, but when the host is in radix mode a
change is required and we see a problem.
To fix this, move the call spapr_setup_hpt_and_vrma() (where
htab_shift could be changed) up a little so that it's called before
spapr_h_cas_compose_response() (where htab_shift is added to the
device tree).
Signed-off-by: Sam Bobroff <address@hidden>
[1] See http://www.spinics.net/lists/kvm-ppc/msg13057.html
Signed-off-by: David Gibson <address@hidden>
Commit: dcb556fc6ad879f7d29fb233a273a1ea3aa0549c
https://github.com/qemu/qemu/commit/dcb556fc6ad879f7d29fb233a273a1ea3aa0549c
Author: Greg Kurz <address@hidden>
Date: 2017-11-14 (Tue, 14 Nov 2017)
Changed paths:
M hw/intc/xics.c
M hw/intc/xics_kvm.c
M include/hw/ppc/xics.h
Log Message:
-----------
xics/kvm: synchonize state before 'info pic'
When using the emulated XICS, the 'info pic' monitor command shows:
CPU 0 XIRR=ff000000 ((nil)) PP=ff MFRR=ff
ICS 1000..13ff 0x10040060340
1000 MSI 05 00
1001 MSI 05 00
1002 MSI 05 00
1003 MSI ff 00
1004 LSI ff 00
1005 LSI ff 00
1006 LSI ff 00
1007 LSI ff 00
1008 MSI 05 00
1009 MSI 05 00
100a MSI 05 00
100b MSI 05 00
100c MSI 05 00
but when using the in-kernel XICS with the very same guest, we get:
CPU 0 XIRR=00000000 ((nil)) PP=ff MFRR=ff
ICS 1000..13ff 0x10032e00340
1000 MSI ff 00
1001 MSI ff 00
1002 MSI ff 00
1003 MSI ff 00
1004 LSI ff 00
1005 LSI ff 00
1006 LSI ff 00
1007 LSI ff 00
1008 MSI ff 00
1009 MSI ff 00
100a MSI ff 00
100b MSI ff 00
100c MSI ff 00
ie, all irqs are masked and XIRR is null, while we should get the
same output as with the emulated XICS.
If the guest is then migrated, 'info pic' shows the expected values
on both source and destination.
The problem is that QEMU doesn't synchronize with KVM before printing
the XICS state. Migration happens to fix the output because it enforces
synchronization with KVM.
To fix the invalid output of 'info pic', this patch introduces a new
synchronize_state operation for both ICPStateClass and ICSStateClass.
The ICP operation relies on run_on_cpu() in order to kick the vCPU
and avoid sleeping on KVM_GET_ONE_REG.
Signed-off-by: Greg Kurz <address@hidden>
Signed-off-by: David Gibson <address@hidden>
Commit: 0dc8874aded76e2b6c73d95df5651e3c8a31a9ec
https://github.com/qemu/qemu/commit/0dc8874aded76e2b6c73d95df5651e3c8a31a9ec
Author: Peter Maydell <address@hidden>
Date: 2017-11-14 (Tue, 14 Nov 2017)
Changed paths:
M hw/intc/xics.c
M hw/intc/xics_kvm.c
M hw/ppc/spapr_hcall.c
M include/hw/ppc/xics.h
Log Message:
-----------
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.11-20171114'
into staging
ppc patch queue for 2017-11-14
Another couple of fixes for qemu-2.11.
# gpg: Signature made Tue 14 Nov 2017 04:36:20 GMT
# gpg: using RSA key 0x6C38CACA20D9B392
# gpg: Good signature from "David Gibson <address@hidden>"
# gpg: aka "David Gibson (Red Hat) <address@hidden>"
# gpg: aka "David Gibson (ozlabs.org) <address@hidden>"
# gpg: aka "David Gibson (kernel.org) <address@hidden>"
# Primary key fingerprint: 75F4 6586 AE61 A66C C44E 87DC 6C38 CACA 20D9 B392
* remotes/dgibson/tags/ppc-for-2.11-20171114:
xics/kvm: synchonize state before 'info pic'
target/ppc: correct htab shift for hash on radix
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/989560636361...0dc8874aded7
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] e05fba: target/ppc: correct htab shift for hash on radix,
GitHub <=