ppc-for-2.12 queue 20180117
The following changes since commit 8e5dc9ba49743b46d955ec7dacb04e42ae7ada7c:
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180116' into staging (2018-01-16 17:36:39 +0000)
are available in the Git repository at:
git://github.com/dgibson/qemu.git tags/ppc-for-2.12-20180117
for you to fetch changes up to 2e569845bd314fc1dde83d65dc9b87e71b4d29b4:
target-ppc: Fix booke206 tlbwe TLB instruction (2018-01-17 09:35:24 +1100)
This pull request hasn't been through a Travis build, unfortunately, since Travis seems to have a gigantic backlog today. I've run all the rest of my usual tests, and I did get a Travis build of this branch before the latest minor rebase, so it's unlikely there's a problem there.
----------------------------------------------------------------
ppc patch queue 2017-01-17
Another pull request for ppc related patches. The most interesting thing here is the new capabilities framework for the pseries machine type. This gives us better handling of several existing incompatibilities between TCG, PR and HV KVM, as well as new ones that arise with POWER9. Further, it will allow reasonable handling of the advertisement of features necessary to mitigate the recent CVEs (Spectre and Meltdown).
In addition there's:
* Improvide handling of different "vsmt" modes
* Significant enhancements to the "pnv" machine type
* Assorted other bugfixes
----------------------------------------------------------------
Alexey Kardashevskiy (1):
target/ppc: Yet another fix for KVM-HV HPTE accessors
Cédric Le Goater (8):
ppc/pnv: Update skiboot firmware image tests/boot-serial-test: fix powernv support ppc/pnv: use POWER9 DD2 processor ppc/pnv: change core mask for POWER9 ppc/pnv: introduce pnv*_is_power9() helpers ppc/pnv: fix XSCOM core addressing on POWER9 ppc/pnv: change initrd address target/ppc: add support for POWER9 HILE
David Gibson (10):
spapr: Capabilities infrastructure
spapr: Treat Hardware Transactional Memory (HTM) as an optional capability
spapr: Validate capabilities on migration
target/ppc: Clean up probing of VMX, VSX and DFP availability on KVM
spapr: Handle VMX/VSX presence as an spapr capability flag
spapr: Handle Decimal Floating Point (DFP) as an optional capability
spapr: Remove unnecessary 'options' field from sPAPRCapabilityInfo target/ppc: Clarify compat mode max_threads value
spapr: Allow some cases where we can't set VSMT mode in the kernel
spapr: Adjust default VSMT value for better migration compatibility
Jose Ricardo Ziviani (1):
ppc: Change Power9 compat table to support at most 8 threads/core
Luc MICHEL (1):
target-ppc: Fix booke206 tlbwe TLB instruction
Suraj Jitindar Singh (1):
hw/ppc/spapr_caps: Rework spapr_caps to use uint8 internal representation
hw/ppc/Makefile.objs | 2 +- hw/ppc/pnv.c | 23 +-- hw/ppc/pnv_core.c | 2 +- hw/ppc/pnv_xscom.c | 8 +- hw/ppc/spapr.c | 115 +++++++++++---- hw/ppc/spapr_caps.c | 345 +++++++++++++++++++++++++++++++++++++++++++++ include/hw/ppc/pnv.h | 11 +- include/hw/ppc/pnv_xscom.h | 13 +- include/hw/ppc/spapr.h | 49 +++++++ pc-bios/skiboot.lid | Bin 983893 -> 1302336 bytes roms/skiboot | 2 +- target/ppc/compat.c | 32 +++-- target/ppc/cpu.h | 3 +- target/ppc/excp_helper.c | 2 +- target/ppc/kvm.c | 38 ++--- target/ppc/kvm_ppc.h | 2 - target/ppc/mmu_helper.c | 32 ++++- tests/boot-serial-test.c | 2 +- tests/pnv-xscom-test.c | 31 ++-- 19 files changed, 610 insertions(+), 102 deletions(-) create mode 100644 hw/ppc/spapr_caps.c
[Qemu-devel] [PULL 01/22] target/ppc: Yet another fix for KVM-HV HPTE accessors
From: Alexey Kardashevskiy <[email protected]>
As stated in the 1ad9f0a464fe commit log, the returned entries are not a whole PTEG. It was not a problem before 1ad9f0a464fe as it would read a single record assuming it contains a whole PTEG but now the code tries reading the entire PTEG and "if ((n - i) < invalid)" produces negative values which then are converted to size_t for memset() and that throws seg fault.
This fixes the math.
While here, fix the last @i increment as well.
--- target/ppc/kvm.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
target/ppc/kvm.c +7 -4
@@ -2667,21 +2667,24 @@ void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, hwaddr ptex, int n) hdr = (struct kvm_get_htab_header *)buf;while ((i < n) && ((char *)hdr < (buf + rc))) { -int invalid = hdr->n_invalid; +int invalid = hdr->n_invalid, valid = hdr->n_valid;if (hdr->index != (ptex + i)) {hw_error ("kvmppc_read_hptes: Unexpected HPTE index %" PRIu32" != (%" HWADDR_PRIu" + %d" , hdr->index, ptex, i); } -memcpy (hptes + i, hdr +1 ,HASH_PTE_SIZE_64 * hdr->n_valid); - i += hdr->n_valid; +if (n - i < valid) { + valid = n - i; + } +memcpy (hptes + i, hdr +1 ,HASH_PTE_SIZE_64 * valid); + i += valid;if ((n - i) < invalid) { invalid = n - i; }memset (hptes + i,0 , invalid *HASH_PTE_SIZE_64 ); - i += hdr->n_invalid; + i += invalid; hdr = (struct kvm_get_htab_header *) ((char *)(hdr +1 ) +HASH_PTE_SIZE_64 * hdr->n_valid);
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 04/22] spapr: Validate capabilities on migration
In reply to David GibsonNow that the "pseries" machine type implements optional capabilities (well, one so far) there's the possibility of having different capabilities available at either end of a migration. Although arguably a user error, it would be nice to catch this situation and fail as gracefully as we can.
This adds code to migrate the capabilities flags. These aren't pulled directly into the destination's configuration since what the user has specified on the destination command line should take precedence. However, they are checked against the destination capabilities.
If the source was using a capability which is absent on the destination, we fail the migration, since that could easily cause a guest crash or other bad behaviour. If the source lacked a capability which is present on the destination we warn, but allow the migration to proceed.
--- hw/ppc/spapr.c | 6 ++++ hw/ppc/spapr_caps.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++-- include/hw/ppc/spapr.h | 6 ++++ 3 files changed, 105 insertions(+), 3 deletions(-)
hw/ppc/spapr.c +6 -0
@@ -1589,6 +1589,11 @@ static int spapr_post_load(void *opaque, int version_id)sPAPRMachineState *spapr = (sPAPRMachineState *)opaque;int err =0 ; + err =spapr_caps_post_migration (spapr); +if (err) { +return err; + } +if (!object_dynamic_cast (OBJECT (spapr->ics),TYPE_ICS_KVM )) {CPUState *cs;CPU_FOREACH (cs) {
@@ -1755,6 +1760,7 @@ static const VMStateDescription vmstate_spapr = { &vmstate_spapr_ov5_cas, &vmstate_spapr_patb_entry, &vmstate_spapr_pending_events, + &vmstate_spapr_caps, NULL } };
hw/ppc/spapr_caps.c +93 -3
120 lines not on this page · raw message
include/hw/ppc/spapr.h +6 -0
@@ -54,6 +54,8 @@ typedef enum {* Capabilities */ +/* These bits go in the migration stream, so they can't be reassigned */ +/* Hardware Transactional Memory */ #define SPAPR_CAP_HTM 0x0000000000000001ULL
@@ -142,6 +144,7 @@ struct sPAPRMachineState {const char *icp_type;sPAPRCapabilities forced_caps, forbidden_caps; +sPAPRCapabilities mig_forced_caps, mig_forbidden_caps;sPAPRCapabilities effective_caps; };
@@ -743,6 +746,8 @@ qemu_irq spapr_qirq(sPAPRMachineState *spapr, int irq);/* * Handling of optional capabilities */ +extern const VMStateDescription vmstate_spapr_caps; +static inline sPAPRCapabilities spapr_caps (uint64_t mask) {sPAPRCapabilities caps = { mask };
@@ -757,5 +762,6 @@ static inline bool spapr_has_cap(sPAPRMachineState *spapr, uint64_t cap)void spapr_caps_reset (sPAPRMachineState *spapr);void spapr_caps_validate (sPAPRMachineState *spapr,Error **errp);void spapr_caps_add_properties (sPAPRMachineClass *smc,Error **errp); +int spapr_caps_post_migration (sPAPRMachineState *spapr);#endif /* HW_SPAPR_H */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 09/22] spapr: Remove unnecessary 'options' field from sPAPRCapabilityInfo
In reply to David GibsonThe options field here is intended to list the available values for the capability. It's not used yet, because the existing capabilities are boolean.
We're going to add capabilities that aren't, but in that case the info on the possible values can be folded into the .description field.
--- hw/ppc/spapr_caps.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
hw/ppc/spapr_caps.c +1 -5
@@ -35,7 +35,6 @@ typedef struct sPAPRCapabilityInfo { const char *name; const char *description; - const char *options; /* valid capability values */ int index; /* Getter and Setter Function Pointers */
@@ -126,7 +125,6 @@ sPAPRCapabilityInfo capability_table[SPAPR_CAP_NUM] = { [SPAPR_CAP_HTM] = { .name = "htm", .description = "Allow Hardware Transactional Memory (HTM)", - .options = "", .index = SPAPR_CAP_HTM, .get = spapr_cap_get_bool, .set = spapr_cap_set_bool,
@@ -136,7 +134,6 @@ sPAPRCapabilityInfo capability_table[SPAPR_CAP_NUM] = { [SPAPR_CAP_VSX] = { .name = "vsx", .description = "Allow Vector Scalar Extensions (VSX)", - .options = "", .index = SPAPR_CAP_VSX, .get = spapr_cap_get_bool, .set = spapr_cap_set_bool,
@@ -146,7 +143,6 @@ sPAPRCapabilityInfo capability_table[SPAPR_CAP_NUM] = { [SPAPR_CAP_DFP] = { .name = "dfp", .description = "Allow Decimal Floating Point (DFP)", - .options = "", .index = SPAPR_CAP_DFP, .get = spapr_cap_get_bool, .set = spapr_cap_set_bool,
@@ -338,7 +334,7 @@ void spapr_caps_add_properties(sPAPRMachineClass *smc, Error **errp)return ; } - desc =g_strdup_printf ("%s%s" , cap->description, cap->options); + desc =g_strdup_printf ("%s" , cap->description);object_class_property_set_description (klass, name, desc, &local_err);g_free (desc);if (local_err) {
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 10/22] ppc: Change Power9 compat table to support at most 8 threads/core
In reply to David GibsonFrom: Jose Ricardo Ziviani <[email protected]>
Increases the max smt mode to 8 for Power9. That's because KVM supports smt emulation in this platform so QEMU should allow users to use it as well.
Today if we try to pass -smp ...,threads=8, QEMU will silently truncate it to smt4 mode and may cause a crash if we try to perform a cpu hotplug.
--- target/ppc/compat.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
target/ppc/compat.c +8 -1
@@ -73,7 +73,14 @@ static const CompatInfo compat_table[] = { .pvr = CPU_POWERPC_LOGICAL_3_00, .pcr = PCR_COMPAT_3_00, .pcr_level = PCR_COMPAT_3_00, - .max_threads = 4, +/* +* POWER9 hardware only supports 4 threads / core, but this +* limit is for guests. We need to support 8 vthreads/vcore +* on POWER9 for POWER8 compatibility guests, and it's very +* confusing if half of the threads disappear from the guest +* if it announces it's POWER9 aware at CAS time. +*/ + .max_threads = 8, }, };
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 11/22] target/ppc: Clarify compat mode max_threads value
In reply to David GibsonWe recently had some discussions that were sidetracked for a while, because nearly everyone misapprehended the purpose of the 'max_threads' field in the compatiblity modes table. It's all about guest expectations, not host expectations or support (that's handled elsewhere).
In an attempt to avoid a repeat of that confusion, rename the field to 'max_vthreads' and add an explanatory comment.
--- hw/ppc/spapr.c | 4 ++-- target/ppc/compat.c | 25 +++++++++++++++++-------- target/ppc/cpu.h | 2 +- 3 files changed, 20 insertions(+), 11 deletions(-)
hw/ppc/spapr.c +2 -2
@@ -345,7 +345,7 @@ static int spapr_fixup_cpu_dt(void *fdt, sPAPRMachineState *spapr)PowerPCCPU *cpu =POWERPC_CPU (cs);DeviceClass *dc =DEVICE_GET_CLASS (cs);int index =spapr_vcpu_id (cpu); -int compat_smt =MIN (smp_threads,ppc_compat_max_threads (cpu)); +int compat_smt =MIN (smp_threads,ppc_compat_max_vthreads (cpu));if ((index % smt) !=0 ) {continue ;
@@ -503,7 +503,7 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset,size_t page_sizes_prop_size;uint32_t vcpus_per_socket = smp_threads * smp_cores;uint32_t pft_size_prop[] = {0 ,cpu_to_be32 (spapr->htab_shift)}; -int compat_smt =MIN (smp_threads,ppc_compat_max_threads (cpu)); +int compat_smt =MIN (smp_threads,ppc_compat_max_vthreads (cpu));sPAPRDRConnector *drc;int drc_index;uint32_t radix_AP_encodings[PPC_PAGE_SIZES_MAX_SZ ];
target/ppc/compat.c +17 -8
@@ -32,7 +32,16 @@ typedef struct {uint32_t pvr;uint64_t pcr;uint64_t pcr_level; -int max_threads; + +/* +* Maximum allowed virtual threads per virtual core +* +* This is to stop older guests getting confused by seeing more +* threads than they think the cpu can support. Usually it's +* equal to the number of threads supported on bare metal +* hardware, but not always (see POWER9). +*/ +int max_vthreads; } CompatInfo;static const CompatInfo compat_table[] = {
@@ -45,28 +54,28 @@ static const CompatInfo compat_table[] = { .pcr = PCR_COMPAT_3_00 | PCR_COMPAT_2_07 | PCR_COMPAT_2_06 | PCR_COMPAT_2_05 | PCR_TM_DIS | PCR_VSX_DIS, .pcr_level = PCR_COMPAT_2_05, - .max_threads = 2, + .max_vthreads = 2, }, { /* POWER7, ISA2.06 */ .name = "power7", .pvr = CPU_POWERPC_LOGICAL_2_06, .pcr = PCR_COMPAT_3_00 | PCR_COMPAT_2_07 | PCR_COMPAT_2_06 | PCR_TM_DIS, .pcr_level = PCR_COMPAT_2_06, - .max_threads = 4, + .max_vthreads = 4, }, { .name = "power7+", .pvr = CPU_POWERPC_LOGICAL_2_06_PLUS, .pcr = PCR_COMPAT_3_00 | PCR_COMPAT_2_07 | PCR_COMPAT_2_06 | PCR_TM_DIS, .pcr_level = PCR_COMPAT_2_06, - .max_threads = 4, + .max_vthreads = 4, }, { /* POWER8, ISA2.07 */ .name = "power8", .pvr = CPU_POWERPC_LOGICAL_2_07, .pcr = PCR_COMPAT_3_00 | PCR_COMPAT_2_07, .pcr_level = PCR_COMPAT_2_07, - .max_threads = 8, + .max_vthreads = 8, }, { /* POWER9, ISA3.00 */ .name = "power9",
@@ -80,7 +89,7 @@ static const CompatInfo compat_table[] = {* confusing if half of the threads disappear from the guest * if it announces it's POWER9 aware at CAS time. */ - .max_threads = 8, + .max_vthreads = 8, }, };
@@ -192,14 +201,14 @@ void ppc_set_compat_all(uint32_t compat_pvr, Error **errp) } } -int ppc_compat_max_threads (PowerPCCPU *cpu) +int ppc_compat_max_vthreads (PowerPCCPU *cpu) {const CompatInfo *compat =compat_by_pvr (cpu->compat_pvr);int n_threads =CPU (cpu)->nr_threads;if (cpu->compat_pvr) {g_assert (compat); - n_threads =MIN (n_threads, compat->max_threads); + n_threads =MIN (n_threads, compat->max_vthreads); }return n_threads;
target/ppc/cpu.h +1 -1
@@ -1395,7 +1395,7 @@ void ppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr, Error **errp);#if !defined(CONFIG_USER_ONLY )void ppc_set_compat_all (uint32_t compat_pvr,Error **errp);#endif -int ppc_compat_max_threads (PowerPCCPU *cpu); +int ppc_compat_max_vthreads (PowerPCCPU *cpu);void ppc_compat_add_property (Object *obj,const char *name,uint32_t *compat_pvr,const char *basedesc,Error **errp);
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 21/22] target/ppc: add support for POWER9 HILE
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
--- target/ppc/cpu.h | 1 + target/ppc/excp_helper.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
target/ppc/cpu.h +1 -0
@@ -2012,6 +2012,7 @@ void ppc_compat_add_property(Object *obj, const char *name,#define HID0_DOZE (1 << 23)/* pre-2.06 */ #define HID0_NAP (1 << 22)/* pre-2.06 */ #define HID0_HILE PPC_BIT(19)/* POWER8 */ +#define HID0_POWER9_HILE PPC_BIT(4)/*****************************************************************************/ /* PowerPC Instructions types definitions */
target/ppc/excp_helper.c +1 -1
@@ -654,7 +654,7 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp) } }else if (excp_model ==POWERPC_EXCP_POWER8 ) {if (new_msr &MSR_HVB ) { -if (env->spr[SPR_HID0 ] &HID0_HILE ) { +if (env->spr[SPR_HID0 ] & (HID0_HILE |HID0_POWER9_HILE )) { new_msr |= (target_ulong )1 <<MSR_LE ; } }else if (env->spr[SPR_LPCR ] &LPCR_ILE ) {
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 02/22] spapr: Capabilities infrastructure
In reply to David GibsonBecause PAPR is a paravirtual environment access to certain CPU (or other) facilities can be blocked by the hypervisor. PAPR provides ways to advertise in the device tree whether or not those features are available to the guest.
In some places we automatically determine whether to make a feature available based on whether our host can support it, in most cases this is based on limitations in the available KVM implementation.
Although we correctly advertise this to the guest, it means that host factors might make changes to the guest visible environment which is bad:
as well as generaly reducing reproducibility, it means that a migration between different host environments can easily go bad.
We've mostly gotten away with it because the environments considered mature enough to be well supported (basically, KVM on POWER8) have had consistent feature availability. But, it's still not right and some limitations on POWER9 is going to make it more of an issue in future.
This introduces an infrastructure for defining "sPAPR capabilities". These are set by default based on the machine version, masked by the capabilities of the chosen cpu, but can be overriden with machine properties.
The intention is at reset time we verify that the requested capabilities can be supported on the host (considering TCG, KVM and/or host cpu limitations). If not we simply fail, rather than silently modifying the advertised featureset to the guest.
This does mean that certain configurations that "worked" may now fail, but such configurations were already more subtly broken.
--- hw/ppc/Makefile.objs | 2 +- hw/ppc/spapr.c | 7 ++ hw/ppc/spapr_caps.c | 181 +++++++++++++++++++++++++++++++++++++++++++++++++ include/hw/ppc/spapr.h | 31 +++++++++ 4 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 hw/ppc/spapr_caps.c
hw/ppc/Makefile.objs +1 -1
@@ -1,7 +1,7 @@ # shared objects obj-y += ppc.o ppc_booke.o fdt.o # IBM pSeries (sPAPR) -obj-$(CONFIG_PSERIES) += spapr.o spapr_vio.o spapr_events.o +obj-$(CONFIG_PSERIES) += spapr.o spapr_caps.o spapr_vio.o spapr_events.o obj-$(CONFIG_PSERIES) += spapr_hcall.o spapr_iommu.o spapr_rtas.o obj-$(CONFIG_PSERIES) += spapr_pci.o spapr_rtc.o spapr_drc.o spapr_rng.o obj-$(CONFIG_PSERIES) += spapr_cpu_core.o spapr_ovec.o
hw/ppc/spapr.c +7 -0
@@ -1466,6 +1466,8 @@ static void spapr_machine_reset(void)/* Check for unknown sysbus devices */ foreach_dynamic_sysbus_device (find_unknown_sysbus_device,NULL ); +spapr_caps_reset (spapr); + first_ppc_cpu =POWERPC_CPU (first_cpu);if (kvm_enabled () &&kvmppc_has_cap_mmu_radix () && ppc_check_compat(first_ppc_cpu, CPU_POWERPC_LOGICAL_3_00, 0,
@@ -2311,6 +2313,8 @@ static void spapr_machine_init(MachineState *machine)char *filename;Error *resize_hpt_err =NULL ; +spapr_caps_validate (spapr, &error_fatal); + msi_nonbroken = true;QLIST_INIT (&spapr->phbs);
@@ -3819,6 +3823,9 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)* in which LMBs are represented and hot-added */ mc->numa_mem_align_shift =28 ; + + smc->default_caps =spapr_caps (0 ); +spapr_caps_add_properties (smc, &error_abort); }static const TypeInfo spapr_machine_info = {
hw/ppc/spapr_caps.c new file +181 -0
181 lines not on this page · raw message
include/hw/ppc/spapr.h +31 -0
@@ -50,6 +50,15 @@ typedef enum {SPAPR_RESIZE_HPT_REQUIRED , } sPAPRResizeHPT; +/** +* Capabilities +*/ + +typedef struct sPAPRCapabilities sPAPRCapabilities ; +struct sPAPRCapabilities { +uint64_t mask; +}; +/** * sPAPRMachineClass: */
@@ -66,6 +75,7 @@ struct sPAPRMachineClass { hwaddr *mmio32, hwaddr *mmio64, unsigned n_dma, uint32_t *liobns, Error **errp);sPAPRResizeHPT resize_hpt_default; +sPAPRCapabilities default_caps; };/**
@@ -127,6 +137,9 @@ struct sPAPRMachineState {MemoryHotplugState hotplug_memory;const char *icp_type; + +sPAPRCapabilities forced_caps, forbidden_caps; +sPAPRCapabilities effective_caps; };#define H_SUCCESS 0
@@ -724,4 +737,22 @@ int spapr_irq_alloc_block(sPAPRMachineState *spapr, int num, bool lsi,void spapr_irq_free (sPAPRMachineState *spapr,int irq,int num);qemu_irq spapr_qirq (sPAPRMachineState *spapr,int irq); +/* +* Handling of optional capabilities +*/ +static inline sPAPRCapabilities spapr_caps (uint64_t mask) +{ +sPAPRCapabilities caps = { mask }; +return caps; +} + +static inline bool spapr_has_cap (sPAPRMachineState *spapr,uint64_t cap) +{ +return !!(spapr->effective_caps.mask & cap); +} + +void spapr_caps_reset (sPAPRMachineState *spapr); +void spapr_caps_validate (sPAPRMachineState *spapr,Error **errp); +void spapr_caps_add_properties (sPAPRMachineClass *smc,Error **errp); +#endif /* HW_SPAPR_H */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 03/22] spapr: Treat Hardware Transactional Memory (HTM) as an optional capability
In reply to David GibsonThis adds an spapr capability bit for Hardware Transactional Memory. It is enabled by default for pseries-2.11 and earlier machine types. with POWER8 or later CPUs (as it must be, since earlier qemu versions would implicitly allow it). However it is disabled by default for the latest pseries-2.12 machine type.
This means that with the latest machine type, HTM will not be available, regardless of CPU, unless it is explicitly enabled on the command line. That change is made on the basis that:
* This way running with -M pseries,accel=tcg will start with whatever cpu and will provide the same guest visible model as with accel=kvm.
- More specifically, this means existing make check tests don't have to be modified to use cap-htm=off in order to run with TCG
* We hope to add a new "HTM without suspend" feature in the not too distant future which could work on both POWER8 and POWER9 cpus, and could be enabled by default.
* Best guesses suggest that future POWER cpus may well only support the HTM-without-suspend model, not the (frankly, horribly overcomplicated) POWER8 style HTM with suspend.
* Anecdotal evidence suggests problems with HTM being enabled when it wasn't wanted are more common than being missing when it was.
--- hw/ppc/spapr.c | 15 ++++++++++----- hw/ppc/spapr_caps.c | 29 ++++++++++++++++++++++++++++- include/hw/ppc/spapr.h | 3 +++ 3 files changed, 41 insertions(+), 6 deletions(-)
hw/ppc/spapr.c +10 -5
@@ -253,7 +253,9 @@ static int spapr_fixup_cpu_numa_dt(void *fdt, int offset, PowerPCCPU *cpu) }/* Populate the "ibm,pa-features" property */ -static void spapr_populate_pa_features (PowerPCCPU *cpu,void *fdt,int offset, +static void spapr_populate_pa_features (sPAPRMachineState *spapr, +PowerPCCPU *cpu, +void *fdt,int offset,bool legacy_guest) {CPUPPCState *env = &cpu->env;
@@ -318,7 +320,7 @@ static void spapr_populate_pa_features(PowerPCCPU *cpu, void *fdt, int offset,*/ pa_features[3 ] |=0x20 ; } -if (kvmppc_has_cap_htm () && pa_size >24 ) { +if (spapr_has_cap (spapr,SPAPR_CAP_HTM ) && pa_size >24 ) { pa_features[24 ] |=0x80 ;/* Transactional memory support */ }if (legacy_guest && pa_size >40 ) {
@@ -384,8 +386,8 @@ static int spapr_fixup_cpu_dt(void *fdt, sPAPRMachineState *spapr)return ret; } -spapr_populate_pa_features (cpu, fdt, offset, - spapr->cas_legacy_guest_workaround); +spapr_populate_pa_features (spapr, cpu, fdt, offset, + spapr->cas_legacy_guest_workaround); }return ret; }
@@ -579,7 +581,7 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset, page_sizes_prop, page_sizes_prop_size))); } -spapr_populate_pa_features (cpu, fdt, offset, false); +spapr_populate_pa_features (spapr, cpu, fdt, offset, false);_FDT ((fdt_setprop_cell (fdt, offset,"ibm,chip-id" , cs->cpu_index / vcpus_per_socket)));
@@ -3903,7 +3905,10 @@ static void spapr_machine_2_11_instance_options(MachineState *machine)static void spapr_machine_2_11_class_options (MachineClass *mc) { +sPAPRMachineClass *smc =SPAPR_MACHINE_CLASS (mc); +spapr_machine_2_12_class_options (mc); + smc->default_caps =spapr_caps (SPAPR_CAP_HTM );SET_MACHINE_COMPAT (mc,SPAPR_COMPAT_2_11 ); }
hw/ppc/spapr_caps.c +28 -1
@@ -24,6 +24,10 @@#include "qemu/osdep.h" #include "qapi/error.h" #include "qapi/visitor.h" +#include "sysemu/hw_accel.h" +#include "target/ppc/cpu.h" +#include "cpu-models.h" +#include "kvm_ppc.h" #include "hw/ppc/spapr.h"
@@ -40,18 +44,41 @@ typedef struct sPAPRCapabilityInfo {void (*disallow)(sPAPRMachineState *spapr,Error **errp); } sPAPRCapabilityInfo; +static void cap_htm_allow (sPAPRMachineState *spapr,Error **errp) +{ +if (tcg_enabled ()) { +error_setg (errp, +"No Transactional Memory support in TCG, try cap-htm=off" ); + }else if (kvm_enabled () && !kvmppc_has_cap_htm ()) { +error_setg (errp, +"KVM implementation does not support Transactional Memory, try cap-htm=off" + ); + } +} +static sPAPRCapabilityInfo capability_table[] = { + { + .name ="htm" , + .description ="Allow Hardware Transactional Memory (HTM)" , + .flag =SPAPR_CAP_HTM , + .allow = cap_htm_allow, +/* TODO: add cap_htm_disallow */ + }, };static sPAPRCapabilities default_caps_with_cpu (sPAPRMachineState *spapr,CPUState *cs) {sPAPRMachineClass *smc =SPAPR_MACHINE_GET_CLASS (spapr); +PowerPCCPU *cpu =POWERPC_CPU (cs);sPAPRCapabilities caps; caps = smc->default_caps; -/* TODO: clamp according to cpu model */ +if (!ppc_check_compat (cpu,CPU_POWERPC_LOGICAL_2_07 , +0 , spapr->max_compat_pvr)) { + caps.mask &= ~SPAPR_CAP_HTM ; + }return caps; }
include/hw/ppc/spapr.h +3 -0
@@ -54,6 +54,9 @@ typedef enum {* Capabilities */ +/* Hardware Transactional Memory */ +#define SPAPR_CAP_HTM 0x0000000000000001ULL +typedef struct sPAPRCapabilities sPAPRCapabilities ;struct sPAPRCapabilities {uint64_t mask;
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 05/22] target/ppc: Clean up probing of VMX, VSX and DFP availability on KVM
In reply to David GibsonWhen constructing the "host" cpu class we modify whether the VMX and VSX vector extensions and DFP (Decimal Floating Point) are available based on whether KVM can support those instructions. This can depend on policy in the host kernel as well as on the actual host cpu capabilities.
However, the way we probe for this is not very nice: we explicitly check the host's device tree. That works in practice, but it's not really correct, since the device tree is a property of the host kernel's platform which we don't really know about. We get away with it because the only modern POWER platforms happen to encode VMX, VSX and DFP availability in the device tree in the same way.
Arguably we should have an explicit KVM capability for this, but we haven't needed one so far. Barring specific KVM policies which don't yet exist, each of these instruction classes will be available in the guest if and only if they're available in the qemu userspace process. We can determine that from the ELF AUX vector we're supplied with.
Once reworked like this, there are no more callers for kvmppc_get_vmx() and kvmppc_get_dfp() so remove them.
--- target/ppc/kvm.c | 27 ++++++--------------------- target/ppc/kvm_ppc.h | 2 -- 2 files changed, 6 insertions(+), 23 deletions(-)
target/ppc/kvm.c +6 -21
@@ -2011,16 +2011,6 @@ uint64_t kvmppc_get_clockfreq(void)return kvmppc_read_int_cpu_dt ("clock-frequency" ); } -uint32_t kvmppc_get_vmx (void ) -{ -return kvmppc_read_int_cpu_dt ("ibm,vmx" ); -} - -uint32_t kvmppc_get_dfp (void ) -{ -return kvmppc_read_int_cpu_dt ("ibm,dfp" ); -} -static int kvmppc_get_pvinfo (CPUPPCState *env,struct kvm_ppc_pvinfo *pvinfo) {PowerPCCPU *cpu =ppc_env_get_cpu (env);
@@ -2404,23 +2394,18 @@ static void alter_insns(uint64_t *word, uint64_t flags, bool on)static void kvmppc_host_cpu_class_init (ObjectClass *oc,void *data) {PowerPCCPUClass *pcc =POWERPC_CPU_CLASS (oc); -uint32_t vmx =kvmppc_get_vmx (); -uint32_t dfp =kvmppc_get_dfp ();uint32_t dcache_size =kvmppc_read_int_cpu_dt ("d-cache-size" );uint32_t icache_size =kvmppc_read_int_cpu_dt ("i-cache-size" );/* Now fix up the class with information we can query from the host */ pcc->pvr =mfpvr (); -if (vmx !=-1 ) { -/* Only override when we know what the host supports */ -alter_insns (&pcc->insns_flags,PPC_ALTIVEC , vmx >0 ); -alter_insns (&pcc->insns_flags2,PPC2_VSX , vmx >1 ); - } -if (dfp !=-1 ) { -/* Only override when we know what the host supports */ -alter_insns (&pcc->insns_flags2,PPC2_DFP , dfp); - } +alter_insns (&pcc->insns_flags,PPC_ALTIVEC , +qemu_getauxval (AT_HWCAP ) &PPC_FEATURE_HAS_ALTIVEC ); +alter_insns (&pcc->insns_flags2,PPC2_VSX , +qemu_getauxval (AT_HWCAP ) &PPC_FEATURE_HAS_VSX ); +alter_insns (&pcc->insns_flags2,PPC2_DFP , +qemu_getauxval (AT_HWCAP ) &PPC_FEATURE_HAS_DFP );if (dcache_size !=-1 ) { pcc->l1_dcache_size = dcache_size;
target/ppc/kvm_ppc.h +0 -2
@@ -15,8 +15,6 @@uint32_t kvmppc_get_tbfreq (void );uint64_t kvmppc_get_clockfreq (void ); -uint32_t kvmppc_get_vmx (void ); -uint32_t kvmppc_get_dfp (void );bool kvmppc_get_host_model (char **buf);bool kvmppc_get_host_serial (char **buf);int kvmppc_get_hasidle (CPUPPCState *env);
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 06/22] spapr: Handle VMX/VSX presence as an spapr capability flag
In reply to David GibsonWe currently have some conditionals in the spapr device tree code to decide whether or not to advertise the availability of the VMX (aka Altivec) and VSX vector extensions to the guest, based on whether the guest cpu has those features.
This can lead to confusion and subtle failures on migration, since it makes a guest visible change based only on host capabilities. We now have a better mechanism for this, in spapr capabilities flags, which explicitly depend on user options rather than host capabilities.
Rework the advertisement of VSX and VMX based on a new VSX capability. We no longer bother with a conditional for VMX support, because every CPU that's ever been supported by the pseries machine type supports VMX.
NOTE: Some userspace distributions (e.g. RHEL7.4) already rely on availability of VSX in libc, so using cap-vsx=off may lead to a fatal SIGILL in init.
--- hw/ppc/spapr.c | 20 +++++++++++--------- hw/ppc/spapr_caps.c | 25 +++++++++++++++++++++++++ include/hw/ppc/spapr.h | 3 +++ 3 files changed, 39 insertions(+), 9 deletions(-)
hw/ppc/spapr.c +11 -9
@@ -557,14 +557,16 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset, segs, sizeof(segs)))); } -/* Advertise VMX/VSX (vector extensions) if available -* 0 / no property == no vector extensions +/* Advertise VSX (vector extensions) if available * 1 == VMX / Altivec available -* 2 == VSX available */ -if (env->insns_flags &PPC_ALTIVEC ) { -uint32_t vmx = (env->insns_flags2 &PPC2_VSX ) ?2 :1 ; - -_FDT ((fdt_setprop_cell (fdt, offset,"ibm,vmx" , vmx))); +* 2 == VSX available +* +* Only CPUs for which we create core types in spapr_cpu_core.c +* are possible, and all of those have VMX */ +if (spapr_has_cap (spapr,SPAPR_CAP_VSX )) { +_FDT ((fdt_setprop_cell (fdt, offset,"ibm,vmx" ,2 ))); + }else { +_FDT ((fdt_setprop_cell (fdt, offset,"ibm,vmx" ,1 ))); }/* Advertise DFP (Decimal Floating Point) if available
@@ -3832,7 +3834,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)*/ mc->numa_mem_align_shift =28 ; - smc->default_caps =spapr_caps (0 ); + smc->default_caps =spapr_caps (SPAPR_CAP_VSX );spapr_caps_add_properties (smc, &error_abort); }
@@ -3914,7 +3916,7 @@ static void spapr_machine_2_11_class_options(MachineClass *mc)sPAPRMachineClass *smc =SPAPR_MACHINE_CLASS (mc);spapr_machine_2_12_class_options (mc); - smc->default_caps =spapr_caps (SPAPR_CAP_HTM ); + smc->default_caps =spapr_caps (SPAPR_CAP_HTM |SPAPR_CAP_VSX );SET_MACHINE_COMPAT (mc,SPAPR_COMPAT_2_11 ); }
hw/ppc/spapr_caps.c +25 -0
@@ -57,6 +57,19 @@ static void cap_htm_allow(sPAPRMachineState *spapr, Error **errp) } } +static void cap_vsx_allow (sPAPRMachineState *spapr,Error **errp) +{ +PowerPCCPU *cpu =POWERPC_CPU (first_cpu); +CPUPPCState *env = &cpu->env; + +/* Allowable CPUs in spapr_cpu_core.c should already have gotten +* rid of anything that doesn't do VMX */ +g_assert (env->insns_flags &PPC_ALTIVEC ); +if (!(env->insns_flags2 &PPC2_VSX )) { +error_setg (errp,"VSX support not available, try cap-vsx=off" ); + } +} +static sPAPRCapabilityInfo capability_table[] = { { .name ="htm" ,
@@ -65,6 +78,13 @@ static sPAPRCapabilityInfo capability_table[] = { .allow = cap_htm_allow, /* TODO: add cap_htm_disallow */ }, + { + .name = "vsx", + .description = "Allow Vector Scalar Extensions (VSX)", + .flag = SPAPR_CAP_VSX, + .allow = cap_vsx_allow, + /* TODO: add cap_vsx_disallow */ + }, }; static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr,
@@ -81,6 +101,11 @@ static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr, caps.mask &= ~SPAPR_CAP_HTM ; } +if (!ppc_check_compat (cpu,CPU_POWERPC_LOGICAL_2_06 , +0 , spapr->max_compat_pvr)) { + caps.mask &= ~SPAPR_CAP_VSX ; + } +return caps; }
include/hw/ppc/spapr.h +3 -0
@@ -59,6 +59,9 @@ typedef enum {/* Hardware Transactional Memory */ #define SPAPR_CAP_HTM 0x0000000000000001ULL +/* Vector Scalar Extensions */ +#define SPAPR_CAP_VSX 0x0000000000000002ULL +typedef struct sPAPRCapabilities sPAPRCapabilities ;struct sPAPRCapabilities {uint64_t mask;
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 07/22] spapr: Handle Decimal Floating Point (DFP) as an optional capability
In reply to David GibsonDecimal Floating Point has been available on POWER7 and later (server) cpus. However, it can be disabled on the hypervisor, meaning that it's not available to guests.
We currently handle this by conditionally advertising DFP support in the device tree depending on whether the guest CPU model supports it - which can also depend on what's allowed in the host for -cpu host. That can lead to confusion on migration, since host properties are silently affecting guest visible properties.
This patch handles it by treating it as an optional capability for the pseries machine type.
--- hw/ppc/spapr.c | 7 ++++--- hw/ppc/spapr_caps.c | 18 ++++++++++++++++++ include/hw/ppc/spapr.h | 3 +++ 3 files changed, 25 insertions(+), 3 deletions(-)
hw/ppc/spapr.c +4 -3
@@ -572,7 +572,7 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset,/* Advertise DFP (Decimal Floating Point) if available * 0 / no property == no DFP * 1 == DFP available */ -if (env->insns_flags2 &PPC2_DFP ) { +if (spapr_has_cap (spapr,SPAPR_CAP_DFP )) {_FDT ((fdt_setprop_cell (fdt, offset,"ibm,dfp" ,1 ))); }
@@ -3834,7 +3834,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)*/ mc->numa_mem_align_shift =28 ; - smc->default_caps =spapr_caps (SPAPR_CAP_VSX ); + smc->default_caps =spapr_caps (SPAPR_CAP_VSX |SPAPR_CAP_DFP );spapr_caps_add_properties (smc, &error_abort); }
@@ -3916,7 +3916,8 @@ static void spapr_machine_2_11_class_options(MachineClass *mc)sPAPRMachineClass *smc =SPAPR_MACHINE_CLASS (mc);spapr_machine_2_12_class_options (mc); - smc->default_caps =spapr_caps (SPAPR_CAP_HTM |SPAPR_CAP_VSX ); + smc->default_caps =spapr_caps (SPAPR_CAP_HTM |SPAPR_CAP_VSX + |SPAPR_CAP_DFP );SET_MACHINE_COMPAT (mc,SPAPR_COMPAT_2_11 ); }
hw/ppc/spapr_caps.c +18 -0
@@ -70,6 +70,16 @@ static void cap_vsx_allow(sPAPRMachineState *spapr, Error **errp) } } +static void cap_dfp_allow (sPAPRMachineState *spapr,Error **errp) +{ +PowerPCCPU *cpu =POWERPC_CPU (first_cpu); +CPUPPCState *env = &cpu->env; + +if (!(env->insns_flags2 &PPC2_DFP )) { +error_setg (errp,"DFP support not available, try cap-dfp=off" ); + } +} +static sPAPRCapabilityInfo capability_table[] = { { .name ="htm" ,
@@ -85,6 +95,13 @@ static sPAPRCapabilityInfo capability_table[] = { .allow = cap_vsx_allow, /* TODO: add cap_vsx_disallow */ }, + { + .name = "dfp", + .description = "Allow Decimal Floating Point (DFP)", + .flag = SPAPR_CAP_DFP, + .allow = cap_dfp_allow, + /* TODO: add cap_dfp_disallow */ + }, }; static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr,
@@ -104,6 +121,7 @@ static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr,if (!ppc_check_compat (cpu,CPU_POWERPC_LOGICAL_2_06 ,0 , spapr->max_compat_pvr)) { caps.mask &= ~SPAPR_CAP_VSX ; + caps.mask &= ~SPAPR_CAP_DFP ; }return caps;
include/hw/ppc/spapr.h +3 -0
@@ -62,6 +62,9 @@ typedef enum {/* Vector Scalar Extensions */ #define SPAPR_CAP_VSX 0x0000000000000002ULL +/* Decimal Floating Point */ +#define SPAPR_CAP_DFP 0x0000000000000004ULL +typedef struct sPAPRCapabilities sPAPRCapabilities ;struct sPAPRCapabilities {uint64_t mask;
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 15/22] tests/boot-serial-test: fix powernv support
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
Recent commit introduced the firmware image skiboot 5.9 which has a different first line ouput.
--- tests/boot-serial-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/boot-serial-test.c +1 -1
@@ -72,7 +72,7 @@ static testdef_t tests[] = { { "ppc64", "ppce500", "", "U-Boot" }, { "ppc64", "prep", "", "Open Hack'Ware BIOS" }, { "ppc64", "pseries", "", "Open Firmware" }, - { "ppc64", "powernv", "-cpu POWER8", "SkiBoot" }, + { "ppc64", "powernv", "-cpu POWER8", "OPAL" }, { "i386", "isapc", "-cpu qemu32 -device sga", "SGABIOS" }, { "i386", "pc", "-device sga", "SGABIOS" }, { "i386", "q35", "-device sga", "SGABIOS" },
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 17/22] ppc/pnv: change core mask for POWER9
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
When addressed by XSCOM, the first core has the 0x20 chiplet ID but the CPU PIR can start at 0x0.
--- hw/ppc/pnv.c | 4 ++-- tests/pnv-xscom-test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
hw/ppc/pnv.c +2 -2
@@ -707,9 +707,9 @@ static uint32_t pnv_chip_core_pir_p9(PnvChip *chip, uint32_t core_id)#define POWER8_CORE_MASK (0x7e7eull)/* -* POWER9 has 24 cores, ids starting at 0x20 +* POWER9 has 24 cores, ids starting at 0x0 */ -#define POWER9_CORE_MASK (0xffffff00000000ull) +#define POWER9_CORE_MASK (0xffffffffffffffull)static void pnv_chip_power8e_class_init (ObjectClass *klass,void *data) {
tests/pnv-xscom-test.c +1 -1
@@ -49,7 +49,7 @@ static const PnvChip pnv_chips[] = { .xscom_base = 0x000603fc00000000ull, .xscom_core_base = 0x0ull, .cfam_id = 0x220d104900008000ull, - .first_core = 0x20, + .first_core = 0x0, },#endif };
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 20/22] ppc/pnv: change initrd address
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
When skiboot starts, it first clears the CPU structs for all possible CPUs on a system :
for (i = 0; i <= cpu_max_pir; i++) memset(&cpu_stacks[i].cpu, 0, sizeof(struct cpu_thread));
On POWER9, cpu_max_pir is quite big, 0x7fff, and the skiboot cpu_stacks array overlaps with the memory region in which QEMU maps the initramfs file. Move it upwards in memory to keep it safe.
--- hw/ppc/pnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/pnv.c +1 -1
@@ -53,7 +53,7 @@#define FW_MAX_SIZE 0x00400000#define KERNEL_LOAD_ADDR 0x20000000 -#define INITRD_LOAD_ADDR 0x40000000 +#define INITRD_LOAD_ADDR 0x60000000static const char *pnv_chip_core_typename (const PnvChip *o) {
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 12/22] spapr: Allow some cases where we can't set VSMT mode in the kernel
In reply to David GibsonAt present if we require a vsmt mode that's not equal to the kernel's default, and the kernel doesn't let us change it (e.g. because it's an old kernel without support) then we always fail.
But in fact we can cope with the kernel having a different vsmt as long as
a) it's >= the actual number of vthreads/vcore (so that guest threads that are supposed to be on the same core act like it)
b) it's a submultiple of the requested vsmt mode (so that guest threads spaced by the vsmt value will act like they're on different cores)
Allowing this case gives us a bit more freedom to adjust the vsmt behaviour without breaking existing cases.
--- hw/ppc/spapr.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-)
hw/ppc/spapr.c +19 -7
@@ -2314,17 +2314,29 @@ static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp)if (kvm_enabled () && (spapr->vsmt != kvm_smt)) { ret =kvmppc_set_smt_threads (spapr->vsmt);if (ret) { +/* Looks like KVM isn't able to change VSMT mode */ error_setg (&local_err,"Failed to set KVM's VSMT mode to %d (errno %d)" , spapr->vsmt, ret); -if (!vsmt_user) { -error_append_hint (&local_err,"On PPC, a VM with %d threads/" -"core on a host with %d threads/core requires " -" the use of VSMT mode %d.\n" , - smp_threads, kvm_smt, spapr->vsmt); +/* We can live with that if the default one is big enough +* for the number of threads, and a submultiple of the one +* we want. In this case we'll waste some vcpu ids, but +* behaviour will be correct */ +if ((kvm_smt >= smp_threads) && ((spapr->vsmt % kvm_smt) ==0 )) { +warn_report_err (local_err); + local_err =NULL ; + goto out; + }else { +if (!vsmt_user) { +error_append_hint (&local_err, +"On PPC, a VM with %d threads/core" +" on a host with %d threads/core" +" requires the use of VSMT mode %d.\n" , + smp_threads, kvm_smt, spapr->vsmt); + } +kvmppc_hint_smt_possible (&local_err); + goto out; } -kvmppc_hint_smt_possible (&local_err); - goto out; } }/* else TCG: nothing to do currently */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 13/22] spapr: Adjust default VSMT value for better migration compatibility
In reply to David Gibsonfa98fbfc "PC: KVM: Support machine option to set VSMT mode" introduced the "vsmt" parameter for the pseries machine type, which controls the spacing of the vcpu ids of thread 0 for each virtual core. This was done to bring some consistency and stability to how that was done, while still allowing backwards compatibility for migration and otherwise.
The default value we used for vsmt was set to the max of the host's advertised default number of threads and the number of vthreads per vcore in the guest. This was done to continue running without extra parameters on older KVM versions which don't allow the VSMT value to be changed.
Unfortunately, even that smaller than before leakage of host configuration into guest visible configuration still breaks things. Specifically a guest with 4 (or less) vthread/vcore will get a different vsmt value when running on a POWER8 (vsmt==8) and POWER9 (vsmt==4) host. That means the vcpu ids don't line up so you can't migrate between them, though you should be able to.
Long term we really want to make vsmt == smp_threads for sufficiently new machine types. However, that means that qemu will then require a sufficiently recent KVM (one which supports changing VSMT) - that's still not widely enough deployed to be really comfortable to do.
In the meantime we need some default that will work as often as possible. This patch changes that default to 8 in all circumstances. This does change guest visible behaviour (including for existing machine versions) for many cases - just not the most common/important case.
Following is case by case justification for why this is still the least worst option. Note that any of the old behaviours can still be duplicated after this patch, it's just that it requires manual intervention by setting the vsmt property on the command line.
KVM HV on POWER8 host:
This is the overwhelmingly common case in production setups, and is unchanged by design. POWER8 hosts will advertise a default VSMT mode of 8, and > 8 vthreads/vcore isn't permitted
KVM HV on POWER7 host:
Will break, but POWER7s allowing KVM were never released to the public.
KVM HV on POWER9 host:
Not yet released to the public, breaking this now will reduce other breakage later.
KVM HV on PowerPC 970:
Will theoretically break it, but it was barely supported to begin with and already required various user visible hacks to work. Also so old that I just don't care.
TCG:
This is the nastiest one; it means migration of TCG guests (without manual vsmt setting) will break. Since TCG is rarely used in production I think this is worth it for the other benefits. It does also remove one more barrier to TCG<->KVM migration which could be interesting for debugging applications.
KVM PR:
As with TCG, this will break migration of existing configurations, without adding extra manual vsmt options. As with TCG, it is rare in production so I think the benefits outweigh breakages.
--- hw/ppc/spapr.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
hw/ppc/spapr.c +8 -3
@@ -2305,9 +2305,14 @@ static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp) }/* In this case, spapr->vsmt has been set by the command line */ }else { -/* Choose a VSMT mode that may be higher than necessary but is -* likely to be compatible with hosts that don't have VSMT. */ - spapr->vsmt =MAX (kvm_smt, smp_threads); +/* +* Default VSMT value is tricky, because we need it to be as +* consistent as possible (for migration), but this requires +* changing it for at least some existing cases. We pick 8 as +* the value that we'd get with KVM on POWER8, the +* overwhelmingly common case in production systems. +*/ + spapr->vsmt =8 ; }/* KVM: If necessary, set the SMT mode: */
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 18/22] ppc/pnv: introduce pnv*_is_power9() helpers
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
These are useful when instantiating device models which are shared between the POWER8 and the POWER9 processor families.
--- hw/ppc/pnv_xscom.c | 8 +++----- include/hw/ppc/pnv.h | 10 ++++++++++ 2 files changed, 13 insertions(+), 5 deletions(-)
hw/ppc/pnv_xscom.c +3 -5
@@ -51,10 +51,9 @@ static void xscom_complete(CPUState *cs, uint64_t hmer_bits)static uint32_t pnv_xscom_pcba (PnvChip *chip,uint64_t addr) { -PnvChipClass *pcc =PNV_CHIP_GET_CLASS (chip); - addr &= (PNV_XSCOM_SIZE -1 ); -if (pcc->chip_type ==PNV_CHIP_POWER9 ) { + +if (pnv_chip_is_power9 (chip)) {return addr >>3 ; }else {return ((addr >>4 ) & ~0xfull ) | ((addr >>3 ) &0xf );
@@ -231,7 +230,6 @@ int pnv_dt_xscom(PnvChip *chip, void *fdt, int root_offset)int xscom_offset;ForeachPopulateArgs args;char *name; -PnvChipClass *pcc =PNV_CHIP_GET_CLASS (chip); name =g_strdup_printf ("xscom@%" PRIx64,be64_to_cpu (reg[0 ])); xscom_offset =fdt_add_subnode (fdt, root_offset, name);
@@ -242,7 +240,7 @@ int pnv_dt_xscom(PnvChip *chip, void *fdt, int root_offset)_FDT ((fdt_setprop_cell (fdt, xscom_offset,"#size-cells" ,1 )));_FDT ((fdt_setprop (fdt, xscom_offset,"reg" , reg,sizeof (reg)))); -if (pcc->chip_type ==PNV_CHIP_POWER9 ) { +if (pnv_chip_is_power9 (chip)) {_FDT ((fdt_setprop (fdt, xscom_offset,"compatible" , compat_p9,sizeof (compat_p9)))); }else {
include/hw/ppc/pnv.h +10 -0
@@ -138,6 +138,16 @@ typedef struct PnvMachineState {Notifier powerdown_notifier; } PnvMachineState; +static inline bool pnv_chip_is_power9 (const PnvChip *chip) +{ +return PNV_CHIP_GET_CLASS (chip)->chip_type ==PNV_CHIP_POWER9 ; +} + +static inline bool pnv_is_power9 (PnvMachineState *pnv) +{ +return pnv_chip_is_power9 (pnv->chips[0 ]); +} +#define PNV_FDT_ADDR 0x01000000#define PNV_TIMEBASE_FREQ 512000000ULL
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 16/22] ppc/pnv: use POWER9 DD2 processor
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
commit 1ed9c8af501f ("target/ppc: Add POWER9 DD2.0 model information") deprecated the POWER9 model v1.0.
--- hw/ppc/pnv.c | 2 +- tests/pnv-xscom-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/ppc/pnv.c +1 -1
@@ -759,7 +759,7 @@ static void pnv_chip_power9_class_init(ObjectClass *klass, void *data)PnvChipClass *k =PNV_CHIP_CLASS (klass); k->chip_type =PNV_CHIP_POWER9 ; - k->chip_cfam_id =0x100d104980000000ull ;/* P9 Nimbus DD1.0 */ + k->chip_cfam_id =0x220d104900008000ull ;/* P9 Nimbus DD2.0 */ k->cores_mask =POWER9_CORE_MASK ; k->core_pir = pnv_chip_core_pir_p9; k->xscom_base =0x00603fc00000000ull ;
tests/pnv-xscom-test.c +1 -1
@@ -48,7 +48,7 @@ static const PnvChip pnv_chips[] = { .cpu_model = "POWER9", .xscom_base = 0x000603fc00000000ull, .xscom_core_base = 0x0ull, - .cfam_id = 0x100d104980000000ull, + .cfam_id = 0x220d104900008000ull, .first_core = 0x20, },#endif
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 19/22] ppc/pnv: fix XSCOM core addressing on POWER9
In reply to David GibsonFrom: Cédric Le Goater <[email protected]>
The XSCOM base address of the core chiplet was wrongly calculated. Use the OPAL macros to fix that and do a couple of renames.
--- hw/ppc/pnv.c | 15 ++++++++------- hw/ppc/pnv_core.c | 2 +- include/hw/ppc/pnv.h | 1 - include/hw/ppc/pnv_xscom.h | 13 +++++++++++-- tests/pnv-xscom-test.c | 27 +++++++++++++++++---------- 5 files changed, 37 insertions(+), 21 deletions(-)
hw/ppc/pnv.c +8 -7
@@ -721,7 +721,6 @@ static void pnv_chip_power8e_class_init(ObjectClass *klass, void *data) k->cores_mask =POWER8E_CORE_MASK ; k->core_pir = pnv_chip_core_pir_p8; k->xscom_base =0x003fc0000000000ull ; - k->xscom_core_base =0x10000000ull ; dc->desc ="PowerNV Chip POWER8E" ; }
@@ -735,7 +734,6 @@ static void pnv_chip_power8_class_init(ObjectClass *klass, void *data) k->cores_mask =POWER8_CORE_MASK ; k->core_pir = pnv_chip_core_pir_p8; k->xscom_base =0x003fc0000000000ull ; - k->xscom_core_base =0x10000000ull ; dc->desc ="PowerNV Chip POWER8" ; }
@@ -749,7 +747,6 @@ static void pnv_chip_power8nvl_class_init(ObjectClass *klass, void *data) k->cores_mask =POWER8_CORE_MASK ; k->core_pir = pnv_chip_core_pir_p8; k->xscom_base =0x003fc0000000000ull ; - k->xscom_core_base =0x10000000ull ; dc->desc ="PowerNV Chip POWER8NVL" ; }
@@ -763,7 +760,6 @@ static void pnv_chip_power9_class_init(ObjectClass *klass, void *data) k->cores_mask =POWER9_CORE_MASK ; k->core_pir = pnv_chip_core_pir_p9; k->xscom_base =0x00603fc00000000ull ; - k->xscom_core_base =0x0ull ; dc->desc ="PowerNV Chip POWER9" ; }
@@ -887,6 +883,7 @@ static void pnv_chip_realize(DeviceState *dev, Error **errp) && (i < chip->nr_cores); core_hwid++) {char core_name[32 ];void *pnv_core = chip->cores + i * typesize; +uint64_t xscom_core_base;if (!(chip->cores_mask & (1ull << core_hwid))) {continue ;
@@ -910,9 +907,13 @@ static void pnv_chip_realize(DeviceState *dev, Error **errp)object_unref (OBJECT (pnv_core));/* Each core has an XSCOM MMIO region */ -pnv_xscom_add_subregion (chip, -PNV_XSCOM_EX_CORE_BASE (pcc->xscom_core_base, - core_hwid), +if (!pnv_chip_is_power9 (chip)) { + xscom_core_base =PNV_XSCOM_EX_BASE (core_hwid); + }else { + xscom_core_base =PNV_XSCOM_P9_EC_BASE (core_hwid); + } + +pnv_xscom_add_subregion (chip, xscom_core_base, &PNV_CORE (pnv_core)->xscom_regs); i++; }
hw/ppc/pnv_core.c +1 -1
@@ -192,7 +192,7 @@ static void pnv_core_realize(DeviceState *dev, Error **errp)snprintf (name,sizeof (name),"xscom-core.%d" , cc->core_id);pnv_xscom_region_init (&pc->xscom_regs,OBJECT (dev), &pnv_core_xscom_ops, - pc, name,PNV_XSCOM_EX_CORE_SIZE ); + pc, name,PNV_XSCOM_EX_SIZE );return ; err:
include/hw/ppc/pnv.h +0 -1
@@ -74,7 +74,6 @@ typedef struct PnvChipClass {uint64_t cores_mask;hwaddr xscom_base; -hwaddr xscom_core_base;uint32_t (*core_pir)(PnvChip *chip,uint32_t core_id); } PnvChipClass;
include/hw/ppc/pnv_xscom.h +11 -2
@@ -21,6 +21,8 @@#include "qom/object.h" +typedef struct PnvChip PnvChip ; +typedef struct PnvXScomInterface {Object parent; }PnvXScomInterface ;
@@ -54,8 +56,15 @@ typedef struct PnvXScomInterfaceClass {* PCB SLAVE 0x110Fxxxx */ -#define PNV_XSCOM_EX_CORE_BASE (base, i) ((base) | ((uint64_t)(i) << 24)) -#define PNV_XSCOM_EX_CORE_SIZE 0x100000 +#define PNV_XSCOM_EX_CORE_BASE 0x10000000ull + +#define PNV_XSCOM_EX_BASE (core) \ + (PNV_XSCOM_EX_CORE_BASE | ((uint64_t)(core) << 24)) +#define PNV_XSCOM_EX_SIZE 0x100000 + +#define PNV_XSCOM_P9_EC_BASE (core) \ + ((uint64_t)(((core) & 0x1F) + 0x20) << 24) +#define PNV_XSCOM_P9_EC_SIZE 0x100000#define PNV_XSCOM_LPC_BASE 0xb0020#define PNV_XSCOM_LPC_SIZE 0x4
tests/pnv-xscom-test.c +17 -10
@@ -21,7 +21,6 @@ typedef struct PnvChip {PnvChipType chip_type;const char *cpu_model;uint64_t xscom_base; -uint64_t xscom_core_base;uint64_t cfam_id;uint32_t first_core; } PnvChip;
@@ -31,14 +30,12 @@ static const PnvChip pnv_chips[] = { .chip_type = PNV_CHIP_POWER8, .cpu_model = "POWER8", .xscom_base = 0x0003fc0000000000ull, - .xscom_core_base = 0x10000000ull, .cfam_id = 0x220ea04980000000ull, .first_core = 0x1, }, { .chip_type = PNV_CHIP_POWER8NVL, .cpu_model = "POWER8NVL", .xscom_base = 0x0003fc0000000000ull, - .xscom_core_base = 0x10000000ull, .cfam_id = 0x120d304980000000ull, .first_core = 0x1, },
@@ -47,7 +44,6 @@ static const PnvChip pnv_chips[] = { .chip_type = PNV_CHIP_POWER9, .cpu_model = "POWER9", .xscom_base = 0x000603fc00000000ull, - .xscom_core_base = 0x0ull, .cfam_id = 0x220d104900008000ull, .first_core = 0x0, },
@@ -89,16 +85,27 @@ static void test_cfam_id(const void *data)qtest_quit (global_qtest); } -#define PNV_XSCOM_EX_CORE_BASE (chip, i) \ - ((chip)->xscom_core_base | (((uint64_t)i) << 24)) + +#define PNV_XSCOM_EX_CORE_BASE 0x10000000ull +#define PNV_XSCOM_EX_BASE (core) \ + (PNV_XSCOM_EX_CORE_BASE | ((uint64_t)(core) << 24)) +#define PNV_XSCOM_P9_EC_BASE (core) \ + ((uint64_t)(((core) & 0x1F) + 0x20) << 24) +#define PNV_XSCOM_EX_DTS_RESULT0 0x50000static void test_xscom_core (const PnvChip *chip) { -uint32_t first_core_dts0 = -PNV_XSCOM_EX_CORE_BASE (chip, chip->first_core) | -PNV_XSCOM_EX_DTS_RESULT0 ; -uint64_t dts0 =pnv_xscom_read (chip, first_core_dts0); +uint32_t first_core_dts0 =PNV_XSCOM_EX_DTS_RESULT0 ; +uint64_t dts0; + +if (chip->chip_type !=PNV_CHIP_POWER9 ) { + first_core_dts0 |=PNV_XSCOM_EX_BASE (chip->first_core); + }else { + first_core_dts0 |=PNV_XSCOM_P9_EC_BASE (chip->first_core); + } + + dts0 =pnv_xscom_read (chip, first_core_dts0); g_assert_cmphex(dts0, ==, 0x26f024f023f0000ull); }
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 22/22] target-ppc: Fix booke206 tlbwe TLB instruction
In reply to David GibsonFrom: Luc MICHEL <[email protected]>
When overwritting a valid TLB entry with a new one, the previous page were not flushed in QEMU TLB, leading to incoherent mapping. This commit fixes this.
--- target/ppc/mmu_helper.c | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-)
target/ppc/mmu_helper.c +27 -5
@@ -2570,6 +2570,17 @@ void helper_booke_setpid(CPUPPCState *env, uint32_t pidn, target_ulong pid)tlb_flush (CPU (cpu)); } +static inline void flush_page (CPUPPCState *env,ppcmas_tlb_t *tlb) +{ +PowerPCCPU *cpu =ppc_env_get_cpu (env); + +if (booke206_tlb_to_page_size (env, tlb) ==TARGET_PAGE_SIZE ) { +tlb_flush_page (CPU (cpu), tlb->mas2 &MAS2_EPN_MASK ); + }else { +tlb_flush (CPU (cpu)); + } +} +void helper_booke206_tlbwe (CPUPPCState *env) {PowerPCCPU *cpu =ppc_env_get_cpu (env);
@@ -2628,6 +2639,21 @@ void helper_booke206_tlbwe(CPUPPCState *env)if (msr_gs) {cpu_abort (CPU (cpu),"missing HV implementation\n" ); } + +if (tlb->mas1 &MAS1_VALID ) { +/* Invalidate the page in QEMU TLB if it was a valid entry. +* +* In "PowerPC e500 Core Family Reference Manual, Rev. 1", +* Section "12.4.2 TLB Write Entry (tlbwe) Instruction": +* (https://www.nxp.com/docs/en/reference-manual/E500CORERM.pdf) +* +* "Note that when an L2 TLB entry is written, it may be displacing an +* already valid entry in the same L2 TLB location (a victim). If a +* valid L1 TLB entry corresponds to the L2 MMU victim entry, that L1 +* TLB entry is automatically invalidated." */ +flush_page (env, tlb); + } + tlb->mas7_3 = ((uint64_t )env->spr[SPR_BOOKE_MAS7 ] <<32 ) | env->spr[SPR_BOOKE_MAS3 ]; tlb->mas1 = env->spr[SPR_BOOKE_MAS1 ];
@@ -2663,11 +2689,7 @@ void helper_booke206_tlbwe(CPUPPCState *env) tlb->mas1 &= ~MAS1_IPROT ; } -if (booke206_tlb_to_page_size (env, tlb) ==TARGET_PAGE_SIZE ) { -tlb_flush_page (CPU (cpu), tlb->mas2 &MAS2_EPN_MASK ); - }else { -tlb_flush (CPU (cpu)); - } +flush_page (env, tlb); }static inline void booke206_tlb_to_mas (CPUPPCState *env,ppcmas_tlb_t *tlb)
Signature · 1 line
2.14.3
[Qemu-devel] [PULL 08/22] hw/ppc/spapr_caps: Rework spapr_caps to use uint8 internal representation
In reply to David GibsonFrom: Suraj Jitindar Singh <[email protected]>
Currently spapr_caps are tied to boolean values (on or off). This patch reworks the caps so that they can have any uint8 value. This allows more capabilities with various values to be represented in the same way internally. Capabilities are numbered in ascending order. The internal representation of capability values is an array of uint8s in the sPAPRMachineState, indexed by capability number.
Capabilities can have their own name, description, options, getter and setter functions, type and allow functions. They also each have their own section in the migration stream. Capabilities are only migrated if they were explictly set on the command line, with the assumption that otherwise the default will match.
On migration we ensure that the capability value on the destination is greater than or equal to the capability value from the source. So long at this remains the case then the migration is considered compatible and allowed to continue.
This patch implements generic getter and setter functions for boolean capabilities. It also converts the existings cap-htm, cap-vsx and cap-dfp capabilities to this new format.
--- hw/ppc/spapr.c | 45 +++++-- hw/ppc/spapr_caps.c | 322 +++++++++++++++++++++++++------------------------ include/hw/ppc/spapr.h | 45 +++---- 3 files changed, 225 insertions(+), 187 deletions(-)
hw/ppc/spapr.c +36 -9
@@ -320,7 +320,7 @@ static void spapr_populate_pa_features(sPAPRMachineState *spapr,*/ pa_features[3 ] |=0x20 ; } -if (spapr_has_cap (spapr,SPAPR_CAP_HTM ) && pa_size >24 ) { +if ((spapr_get_cap (spapr,SPAPR_CAP_HTM ) !=0 ) && pa_size >24 ) { pa_features[24 ] |=0x80 ;/* Transactional memory support */ }if (legacy_guest && pa_size >40 ) {
@@ -563,7 +563,7 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset,* * Only CPUs for which we create core types in spapr_cpu_core.c * are possible, and all of those have VMX */ -if (spapr_has_cap (spapr,SPAPR_CAP_VSX )) { +if (spapr_get_cap (spapr,SPAPR_CAP_VSX ) !=0 ) {_FDT ((fdt_setprop_cell (fdt, offset,"ibm,vmx" ,2 ))); }else {_FDT ((fdt_setprop_cell (fdt, offset,"ibm,vmx" ,1 )));
@@ -572,7 +572,7 @@ static void spapr_populate_cpu_dt(CPUState *cs, void *fdt, int offset,/* Advertise DFP (Decimal Floating Point) if available * 0 / no property == no DFP * 1 == DFP available */ -if (spapr_has_cap (spapr,SPAPR_CAP_DFP )) { +if (spapr_get_cap (spapr,SPAPR_CAP_DFP ) !=0 ) {_FDT ((fdt_setprop_cell (fdt, offset,"ibm,dfp" ,1 ))); }
@@ -1586,6 +1586,18 @@ static bool spapr_vga_init(PCIBus *pci_bus, Error **errp) } } +static int spapr_pre_load (void *opaque) +{ +int rc; + + rc =spapr_caps_pre_load (opaque); +if (rc) { +return rc; + } + +return 0 ; +} +static int spapr_post_load (void *opaque,int version_id) {sPAPRMachineState *spapr = (sPAPRMachineState *)opaque;
@@ -1627,6 +1639,18 @@ static int spapr_post_load(void *opaque, int version_id)return err; } +static int spapr_pre_save (void *opaque) +{ +int rc; + + rc =spapr_caps_pre_save (opaque); +if (rc) { +return rc; + } + +return 0 ; +} +static bool version_before_3 (void *opaque,int version_id) {return version_id <3 ;
@@ -1747,7 +1771,9 @@ static const VMStateDescription vmstate_spapr = { .name = "spapr", .version_id = 3, .minimum_version_id = 1, + .pre_load = spapr_pre_load, .post_load = spapr_post_load, + .pre_save = spapr_pre_save, .fields = (VMStateField []) {/* used to be @next_irq */ VMSTATE_UNUSED_BUFFER (version_before_3,0 ,4 ),
@@ -1762,7 +1788,9 @@ static const VMStateDescription vmstate_spapr = { &vmstate_spapr_ov5_cas, &vmstate_spapr_patb_entry, &vmstate_spapr_pending_events, - &vmstate_spapr_caps, + &vmstate_spapr_cap_htm, + &vmstate_spapr_cap_vsx, + &vmstate_spapr_cap_dfp, NULL } };
@@ -2323,8 +2351,6 @@ static void spapr_machine_init(MachineState *machine)char *filename;Error *resize_hpt_err =NULL ; -spapr_caps_validate (spapr, &error_fatal); - msi_nonbroken = true;QLIST_INIT (&spapr->phbs);
@@ -3834,7 +3860,9 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)*/ mc->numa_mem_align_shift =28 ; - smc->default_caps =spapr_caps (SPAPR_CAP_VSX |SPAPR_CAP_DFP ); + smc->default_caps.caps[SPAPR_CAP_HTM ] =SPAPR_CAP_OFF ; + smc->default_caps.caps[SPAPR_CAP_VSX ] =SPAPR_CAP_ON ; + smc->default_caps.caps[SPAPR_CAP_DFP ] =SPAPR_CAP_ON ;spapr_caps_add_properties (smc, &error_abort); }
@@ -3916,8 +3944,7 @@ static void spapr_machine_2_11_class_options(MachineClass *mc)sPAPRMachineClass *smc =SPAPR_MACHINE_CLASS (mc);spapr_machine_2_12_class_options (mc); - smc->default_caps =spapr_caps (SPAPR_CAP_HTM |SPAPR_CAP_VSX - |SPAPR_CAP_DFP ); + smc->default_caps.caps[SPAPR_CAP_HTM ] =SPAPR_CAP_ON ;SET_MACHINE_COMPAT (mc,SPAPR_COMPAT_2_11 ); }
hw/ppc/spapr_caps.c +165 -157
447 lines not on this page · raw message
include/hw/ppc/spapr.h +24 -21
77 lines not on this page · raw message
Signature · 1 line
2.14.3
Peter Maydell
AppliedQuoted 10 lines · David Gibson
The following changes since commit
8e5dc9ba49743b46d955ec7dacb04e42ae7ada7c:Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180116' into staging (2018-01-16 17:36:39 +0000)
are available in the Git repository at:
git://github.com/dgibson/qemu.gittags/ppc-for-2.12-20180117for you to fetch changes up to
2e569845bd314fc1dde83d65dc9b87e71b4d29b4:
Quoted 8 lines
target-ppc: Fix booke206 tlbwe TLB instruction (2018-01-17 09:35:24 +1100)
This pull request hasn't been through a Travis build, unfortunately, since Travis seems to have a gigantic backlog today. I've run all the rest of my usual tests, and I did get a Travis build of this branch before the latest minor rebase, so it's unlikely there's a problem there.
Applied, thanks.
-- PMM