Skip to contentSkip to conversation

Accumulated ppc patches

PATCH Applied David Gibson 3 participants 7 messages Jun 15, 2013 – Jun 19, 2013

lore
Share & tools
lore
#0 lore raw

cover Accumulated ppc patches

Hi Alex,

I see that you're now back from your holiday. Here, rather belatedly, is my series of ppc related patches collected while acting ppc maintainer. As you can see there aren't many at all. I'm not sure if that's because I wasn't looking in the right places for people sending patches, or there just wasn't much activity. Anyway, here they are, do with them as you see fit.

#1 lore raw

PATCH 1/3 target-ppc: Change default machine for 64-bit

Currently, for qemu-system-ppc64, the default machine type is 'mac99'. The mac99 machine is not being actively maintained, and represents a bizarre hybrid of components that never actually existed as a real system. This patch changes the default machine to 'pseries', which is actively maintained and works well with most modern ppc64 Linux distributions as a guest.

Because the pseries machine type is optional (it is only built when libfdt is available), this can result in a build with no default machine. In that case vl.c will print a "No machine found" message. This seems reasonable, given that as mentioned, mac99 is unlikely to be a good choice.

---
 hw/ppc/mac_newworld.c | 3 ---
 hw/ppc/spapr.c        | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
hw/ppc/mac_newworld.c +0 -3
index ce44e95..dafe7d2 100644
@@ -458,9 +458,6 @@ static QEMUMachine core99_machine = {
     .desc = "Mac99 based PowerMAC",
     .init = ppc_core99_init,
     .max_cpus = MAX_CPUS,
-#ifdef TARGET_PPC64
-    .is_default = 1,
-#endif
     DEFAULT_MACHINE_OPTIONS,
 };
 
hw/ppc/spapr.c +1 -0
index 218ea23..5363c3f 100644
@@ -971,6 +971,7 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args)
 static QEMUMachine spapr_machine = {
     .name = "pseries",
     .desc = "pSeries Logical Partition (PAPR compliant)",
+    .is_default = 1,
     .init = ppc_spapr_init,
     .reset = ppc_spapr_reset,
     .block_default_type = IF_SCSI,
Signature · 1 line
1.8.1.4
#2 lore raw

PATCH 2/3 target-ppc kvm: save cr register

In reply to David Gibson

From: Alexey Kardashevskiy <[email protected]>

This adds a missing code to save CR (condition register) via kvm_arch_put_registers(). kvm_arch_get_registers() already has it.

---
 target-ppc/kvm.c | 5 +++++
 1 file changed, 5 insertions(+)
target-ppc/kvm.c +5 -0
index 2bbc3b8..c89dd58 100644
@@ -791,6 +791,11 @@ int kvm_arch_put_registers(CPUState *cs, int level)
     for (i = 0;i < 32; i++)
         regs.gpr[i] = env->gpr[i];
 
+    regs.cr = 0;
+    for (i = 0; i < 8; i++) {
+        regs.cr |= (env->crf[i] & 15) << (4 * (7 - i));
+    }
+
     ret = kvm_vcpu_ioctl(cs, KVM_SET_REGS, &regs);
     if (ret < 0)
         return ret;
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH 3/3 pseries: Update MAINTAINERS information

In reply to David Gibson

I'm no longer at IBM, and therefore no long actively working on the pseries (aka sPAPR) qemu machine type. This patch replaces my information in the MAINTAINERS file with that for Alexey Kardashevskiy, who is taking over maintainership of the pseries code. While we're at it, I've added some extra file patterns for pseries specific files that weren't included in the existing pattern.

Cc Alexey Kardashevskiy <[email protected]>
---
 MAINTAINERS | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
MAINTAINERS +5 -1
index 3412b07..af28c77 100644
@@ -428,11 +428,15 @@ F: hw/pci/devices/host-prep.[hc]
 F: hw/isa/pc87312.[hc]
 
 sPAPR
-M: David Gibson <[email protected]>
+M: Alexey Kardashevskiy <[email protected]>
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Supported
 F: hw/*/spapr*
+F: include/hw/*/spapr*
+F: hw/*/xics*
+F: include/hw/*/xics*
+F: pc-bios/spapr-rtas/*
 
 virtex_ml507
 M: Edgar E. Iglesias <[email protected]>
Signature · 1 line
1.8.1.4
#4 lore raw
In reply to David Gibson
Quoted 9 lines · David Gibson

Hi Alex,

I see that you're now back from your holiday. Here, rather belatedly, is my series of ppc related patches collected while acting ppc maintainer. As you can see there aren't many at all. I'm not sure if that's because I wasn't looking in the right places for people sending patches, or there just wasn't much activity. Anyway, here they are, do with them as you see fit.

Thanks, applied all except for Alexey's addition as maintainer to ppc-next.

Alexey, please lurk on the list, review patches, write patches that I don't have to comment anything on before applying them - in short: prove that you'd be a great maintainer and then I'll reconsider adding you to the file :).

Alex

#5 lore raw
Quoted 13 lines · Alexander Graf
Quoted 9 lines · David Gibson

Hi Alex,

I see that you're now back from your holiday. Here, rather belatedly, is my series of ppc related patches collected while acting ppc maintainer. As you can see there aren't many at all. I'm not sure if that's because I wasn't looking in the right places for people sending patches, or there just wasn't much activity. Anyway, here they are, do with them as you see fit.

Quoted 8 lines

Thanks, applied all except for Alexey's addition as maintainer to ppc-next.

Alexey, please lurk on the list, review patches, write patches that I don't have to comment anything on before applying them - in short: prove that you'd be a great maintainer and then I'll reconsider adding you to the file :).

So in short - you did not pull anything from the list posted by David or me (except David's changes in maintainers list) in last 2 weeks and not going to, is that correct? :) I am asking because I am waiting till you finish with the queue in your mailbox to see what I still have to repost.

Signature · 1 line
Alexey
#6 lore raw
Quoted 18 lines · Alexey Kardashevskiy
Quoted 16 lines · Alexander Graf
Quoted 9 lines · David Gibson

Hi Alex,

I see that you're now back from your holiday. Here, rather belatedly, is my series of ppc related patches collected while acting ppc maintainer. As you can see there aren't many at all. I'm not sure if that's because I wasn't looking in the right places for people sending patches, or there just wasn't much activity. Anyway, here they are, do with them as you see fit.

Thanks, applied all except for Alexey's addition as maintainer to ppc-next.

Quoted 8 lines
Quoted 4 lines

Alexey, please lurk on the list, review patches, write patches that I don't have to comment anything on before applying them - in short: prove that you'd be a great maintainer and then I'll reconsider adding you to the file :).

So in short - you did not pull anything from the list posted by David or me (except David's changes in maintainers list) in last 2 weeks and not going to, is that correct? :)

That's not what I was saying. I'm more than happy to apply patches from anyone, regardless of their tag in the MAINTAINERS file :). The tag mostly just indicates a level of trust that takes a while to earn.

Quoted 2 lines

I am asking because I am waiting till you finish
with the queue in your mailbox to see what I still have to repost.

Yes, I'm down to ~400. I'll send a note when I'm at a reasonable point. Hopefully by the end of this week.

Alex