{"commits":[{"author":{"name":"Alexander Graf","email":"3ad82b0c937b9aa51276120cedd545efc822be04@suse.de"},"sha":"3da85f4aa6d54d0c7047dc4974421c264eaea391","message":"KVM: PPC: E500: Support hugetlbfs\n\nWith hugetlbfs support emerging on e500, we should also support KVM\nbacking its guest memory by it.\n\nThis patch adds support for hugetlbfs into the e500 shadow mmu code.\n\nSigned-off-by: Alexander Graf <agraf@suse.de>\nAcked-by: Scott Wood <scottwood@freescale.com>\n\n---\n\nv1 -> v2:\n\n  - address scott's comments\n\nv2 -> v3:\n\n  - fix whitespace","url":"https://api.github.com/repos/agraf/linux-2.6/commits/3da85f4aa6d54d0c7047dc4974421c264eaea391"},{"author":{"name":"Bharat Bhushan","email":"19edf7ecac19b3067f7b05859af569cbc05b0bcc@freescale.com"},"sha":"7b3c2f2a4652854b7b1f54f71273c3e575dc9174","message":"PPC: Fix race in mtmsr paravirt implementation\n\nThe current implementation of mtmsr and mtmsrd are racy in that it does:\n\n  * check (int_pending == 0)\n  ---> host sets int_pending = 1 <---\n  * write shared page\n  * done\n\nwhile instead we should check for int_pending after the shared page is written.\n\nSigned-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/7b3c2f2a4652854b7b1f54f71273c3e575dc9174"},{"author":{"name":"Bharat Bhushan","email":"19edf7ecac19b3067f7b05859af569cbc05b0bcc@freescale.com"},"sha":"15730a1da412fb6ed99d7cbc2b94b302b73d2c50","message":"Fix DEC truncation for greater than 0xffff_ffff/1000\n\nkvmppc_emulate_dec() uses dec_nsec of type unsigned long and does below calculation:\n\n        dec_nsec = vcpu->arch.dec;\n        dec_nsec *= 1000;\nThis will truncate if DEC value \"vcpu->arch.dec\" is greater than 0xffff_ffff/1000.\nFor example : For tb_ticks_per_usec = 4a, we can not set decrementer more than ~58ms.\n\nSigned-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>\nAcked-by: Liu Yu <yu.liu@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/15730a1da412fb6ed99d7cbc2b94b302b73d2c50"},{"author":{"name":"Bharat Bhushan","email":"19edf7ecac19b3067f7b05859af569cbc05b0bcc@freescale.com"},"sha":"314d0b7714b1222e58ef05b7ef8196e1dd5b7e6e","message":"KVM: booke: Do Not start decrementer when SPRN_DEC set 0\n\nAs per specification the decrementer interrupt not happen when DEC is written with 0. Also when DEC is zero, no decrementer running. So we should not start hrtimer for decrementer when DEC = 0.\n\nSigned-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/314d0b7714b1222e58ef05b7ef8196e1dd5b7e6e"},{"author":{"name":"Nishanth Aravamudan","email":"32d5d7104760c6969dbcc939b04e64f225673f91@us.ibm.com"},"sha":"3193594c05d97c4902b6bafeea0c6fc6bfedd934","message":"powerpc/kvm: annotate kvm_rma_init as __init\n\nkvm_rma_init() is only called at boot-time, by setup_arch, which is also __init.\n\nSigned-off-by: Nishanth Aravamudan <nacc@us.ibm.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/3193594c05d97c4902b6bafeea0c6fc6bfedd934"},{"author":{"name":"Nishanth Aravamudan","email":"32d5d7104760c6969dbcc939b04e64f225673f91@us.ibm.com"},"sha":"5eaa5c7d59c5b8deadcc0bc88ff1570c901e01c7","message":"powerpc/kvm: fix build with older toolchains\n\nFix KVM build for older toolchains (found with .powerpc64-unknown-linux-gnu-gcc\n(crosstool-NG-1.8.1) 4.3.2):\n\n  AS      arch/powerpc/kvm/book3s_hv_rmhandlers.o\narch/powerpc/kvm/book3s_hv_rmhandlers.S: Assembler messages:\narch/powerpc/kvm/book3s_hv_rmhandlers.S:1388: Error: Unrecognized opcode: `popcntw'\nmake[1]: *** [arch/powerpc/kvm/book3s_hv_rmhandlers.o] Error 1\nmake: *** [_module_arch/powerpc/kvm] Error 2\n\nSigned-off-by: Nishanth Aravamudan <nacc@us.ibm.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/5eaa5c7d59c5b8deadcc0bc88ff1570c901e01c7"},{"author":{"name":"Andreas Schwab","email":"c9df6394cb541f693236245820fbe23866f1a3fe@linux-m68k.org"},"sha":"f2c308865d4e49ce8be41da3482b545f64543a74","message":"KVM: PPC: move compute_tlbie_rb to book3s_64 common header\n\ncompute_tlbie_rb is only used on ppc64 and cannot be compiled on ppc32.\n\nSigned-off-by: Andreas Schwab <schwab@linux-m68k.org>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/f2c308865d4e49ce8be41da3482b545f64543a74"},{"author":{"name":"Andreas Schwab","email":"c9df6394cb541f693236245820fbe23866f1a3fe@linux-m68k.org"},"sha":"f9860a9605fb7688502e3f2620668c4543bf955b","message":"KVM: PPC: protect use of kvmppc_h_pr\n\nkvmppc_h_pr is only available if CONFIG_KVM_BOOK3S_64_PR.\n\nSigned-off-by: Andreas Schwab <schwab@linux-m68k.org>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/f9860a9605fb7688502e3f2620668c4543bf955b"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"9cf3647a50336e43d016faef954c11ecd6907166","message":"KVM: PPC: booke: check for signals in kvmppc_vcpu_run\n\nCurrently we check prior to returning from a lightweight exit,\nbut not prior to initial entry.\n\nbook3s already does a similar test.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/9cf3647a50336e43d016faef954c11ecd6907166"},{"author":{"name":"Michael Neuling","email":"7b0ab45a730e48a69239010b5b8fe5fa4e8eaac6@neuling.org"},"sha":"f88e2b81716a443f2090aac872af3a85626c7abd","message":"powerpc kvm: fix kvmppc_start_thread() for CONFIG_SMP=N\n\nCurrently kvmppc_start_thread() tries to wake other SMT threads via\nxics_wake_cpu().  Unfortunately xics_wake_cpu only exists when\nCONFIG_SMP=Y so when compiling with CONFIG_SMP=N we get:\n\n  arch/powerpc/kvm/built-in.o: In function `.kvmppc_start_thread':\n  book3s_hv.c:(.text+0xa1e0): undefined reference to `.xics_wake_cpu'\n\nThe following should be fine since kvmppc_start_thread() shouldn't\ncalled to start non-zero threads when SMP=N since threads_per_core=1.\n\nSigned-off-by: Michael Neuling <mikey@neuling.org>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/f88e2b81716a443f2090aac872af3a85626c7abd"},{"author":{"name":"Andy Fleming","email":"761b620017597639866580fd234cedf470f42bc1@freescale.com"},"sha":"c6fa963141b165edfc9f350723f218f09f0ca073","message":"XXX remove me XX fsl_pq_mdio: Clean up tbi address configuration\n\nThe code for setting the address of the internal TBI PHY was\nconvoluted enough without a maze of ifdefs. Clean it up a bit\nso we allow the logic to fail down to -ENODEV at the end of\nthe if/else ladder, rather than using ifdefs to repeat the same\nfailure code over and over.\n\nAlso, remove the support for the auto-configuration. I'm not aware of\nanyone using it, and it ends up using the bus mutex before it's been\ninitialized.\n\nSigned-off-by: Andy Fleming <afleming@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/c6fa963141b165edfc9f350723f218f09f0ca073"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"95e0cbcc72236d8c460e8725122545e8ac91098d","message":"KVM: PPC: Rename deliver_interrupts to prepare_to_enter\n\nThis function also updates paravirt int_pending, so rename it\nto be more obvious that this is a collection of checks run prior\nto (re)entering a guest.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/95e0cbcc72236d8c460e8725122545e8ac91098d"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"9ab2bf8c91bb748aeb4922fc65a46091f77cc994","message":"KVM: PPC: Move prepare_to_enter call site into subarch code\n\nThis function should be called with interrupts disabled, to avoid\na race where an exception is delivered after we check, but the\nresched kick is received before we disable interrupts (and thus doesn't\nactually trigger the exit code that would recheck exceptions).\n\nbooke already does this properly in the lightweight exit case, but\nnot on initial entry.\n\nFor now, move the call of prepare_to_enter into subarch-specific code so\nthat booke can do the right thing here.  Ideally book3s would do the same\nthing, but I'm having a hard time seeing where it does any interrupt\ndisabling of this sort (plus it has several additional call sites), so\nI'm deferring the book3s fix to someone more familiar with that code.\nbook3s behavior should be unchanged by this patch.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/9ab2bf8c91bb748aeb4922fc65a46091f77cc994"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"8dabfa2666fe693625813afedb196a0b24096a9c","message":"KVM: PPC: booke: Check for MSR[WE] in prepare_to_enter\n\nThis prevents us from inappropriately blocking in a KVM_SET_REGS\nioctl -- the MSR[WE] will take effect when the guest is next entered.\n\nIt also causes SRR1[WE] to be set when we enter the guest's interrupt\nhandler, which is what e500 hardware is documented to do.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/8dabfa2666fe693625813afedb196a0b24096a9c"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"4ab0ca60f731c2a91fafb41a264f1be062239e80","message":"KVM: PPC: booke: Fix int_pending calculation for MSR[EE] paravirt\n\nint_pending was only being lowered if a bit in pending_exceptions\nwas cleared during exception delivery -- but for interrupts, we clear\nit during IACK/TSR emulation.  This caused paravirt for enabling\nMSR[EE] to be ineffective.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/4ab0ca60f731c2a91fafb41a264f1be062239e80"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"e501b01e67f9f708e14dd1bb373a5736fe7deb9a","message":"KVM: PPC: booke: Paravirtualize wrtee\n\nAlso fix wrteei 1 paravirt to check for a pending interrupt.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/e501b01e67f9f708e14dd1bb373a5736fe7deb9a"},{"author":{"name":"Scott Wood","email":"b77916c2feab81a70245e7b5671f4f02730ebf64@freescale.com"},"sha":"d778b1a902b7924a5a7a5fece8d1c89d160c08b7","message":"KVM: PPC: Paravirtualize SPRG4-7, ESR, PIR, MASn\n\nThis allows additional registers to be accessed by the guest\nin PR-mode KVM without trapping.\n\nSPRG4-7 are readable from userspace.  On booke, KVM will sync\nthese registers when it enters the guest, so that accesses from\nguest userspace will work.  The guest kernel, OTOH, must consistently\nuse either the real registers or the shared area between exits.  This\nalso applies to the already-paravirted SPRG3.\n\nOn non-booke, it's not clear to what extent SPRG4-7 are supported\n(they're not architected for book3s, but exist on at least some classic\nchips).  They are copied in the get/set regs ioctls, but I do not see any\nnon-booke emulation.  I also do not see any syncing with real registers\n(in PR-mode) including the user-readable SPRG3.  This patch should not\nmake that situation any worse.\n\nSigned-off-by: Scott Wood <scottwood@freescale.com>\nSigned-off-by: Alexander Graf <agraf@suse.de>","url":"https://api.github.com/repos/agraf/linux-2.6/commits/d778b1a902b7924a5a7a5fece8d1c89d160c08b7"}],"ref":"refs/heads/kvm-ppc-next","head":"d778b1a902b7924a5a7a5fece8d1c89d160c08b7","push_id":50540365,"size":17}