I have a very lucrative Business

2014-01-08 Thread Musa Hamed
ATTN: Dear, I am Dr. Musa Hamed Executive Director of the Bank of Africa Plc B.O.A,Cotonou Benin Rep. I have a very lucrative Business proposal worth of 21,500,000.00 USD. An Iraqi named Hamadi Hashem a business man made a fixed deposit of 21,500,000.00 USD . Upon maturity several notices was sen

[PATCH v6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Cédric Le Goater
MMIO emulation reads the last instruction executed by the guest and then emulates. If the guest is running in Little Endian order, or more generally in a different endian order of the host, the instruction needs to be byte-swapped before being emulated. This patch adds a helper routine which tests

Re: [PATCH v5 3/6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Cedric Le Goater
On 01/08/2014 06:34 PM, Alexander Graf wrote: >>> if (kvmppc_is_bigendian(vcpu)) { >>> /* Default endianness is "big endian". */ >>> is_bigendian = is_default_endian; >>> } else { >>> /* Default endianness is "little endian". */ >>> is_bigendian = !is_default_endian; >>> } >>> >

Re: [PATCH v5 3/6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Alexander Graf
On 01/08/2014 06:23 PM, Cedric Le Goater wrote: On 01/02/2014 09:22 PM, Alexander Graf wrote: On 05.11.2013, at 18:22, Cédric Le Goater wrote: MMIO emulation reads the last instruction executed by the guest and then emulates. If the guest is running in Little Endian mode, the instruction need

Re: [PATCH v5 3/6] KVM: PPC: Book3S: MMIO emulation support for little endian guests

2014-01-08 Thread Cedric Le Goater
On 01/02/2014 09:22 PM, Alexander Graf wrote: > > On 05.11.2013, at 18:22, Cédric Le Goater wrote: > >> MMIO emulation reads the last instruction executed by the guest >> and then emulates. If the guest is running in Little Endian mode, >> the instruction needs to be byte-swapped before being

Re: [PATCH v5 2/6] KVM: PPC: Book3S: add helper routines to detect endian

2014-01-08 Thread Cedric Le Goater
Hi Alex, On 01/02/2014 09:05 PM, Alexander Graf wrote: > > On 05.11.2013, at 18:22, Cédric Le Goater wrote: > >> They will be used to decide whether to byte-swap or not. When Little >> Endian host kernels come, these routines will need to be changed >> accordingly. >> >> Signed-off-by: Cédric L

RE: [PATCH] KVM: PPC: Add devname:kvm aliases for modules

2014-01-08 Thread mihai.cara...@freescale.com
> -Original Message- > From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc- > ow...@vger.kernel.org] On Behalf Of Alexander Graf > Sent: Monday, December 09, 2013 5:02 PM > To: "; " "@suse.de > Cc: k...@vger.kernel.org mailing list > Subject: [PATCH] KVM: PPC: Add devname:kvm aliases for mo

RE: [PATCH] KVM: PPC: Add devname:kvm aliases for modules

2014-01-08 Thread mihai.cara...@freescale.com
> -Original Message- > From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc- > ow...@vger.kernel.org] On Behalf Of Alexander Graf > Sent: Monday, December 09, 2013 5:02 PM > To: "; " "@suse.de > Cc: k...@vger.kernel.org mailing list > Subject: [PATCH] KVM: PPC: Add devname:kvm aliases for mo

[PATCH 06/18] KVM: PPC: Book3S HV: Implement architecture compatibility modes for POWER8

2014-01-08 Thread Paul Mackerras
This allows us to select architecture 2.05 (POWER6) or 2.06 (POWER7) compatibility modes on a POWER8 processor. (Note that transactional memory is disabled for usermode if either or both of the PCR_TM_DIS and PCR_ARCH_206 bits are set.) Signed-off-by: Paul Mackerras --- arch/powerpc/include/asm

[PATCH 03/18] KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs

2014-01-08 Thread Paul Mackerras
From: Michael Neuling This adds fields to the struct kvm_vcpu_arch to store the new guest-accessible SPRs on POWER8, adds code to the get/set_one_reg functions to allow userspace to access this state, and adds code to the guest entry and exit to context-switch these SPRs between host and guest.

[PATCH 12/18] KVM: PPC: Book3S HV: Basic little-endian guest support

2014-01-08 Thread Paul Mackerras
From: Anton Blanchard We create a guest MSR from scratch when delivering exceptions in a few places. Instead of extracting LPCR[ILE] and inserting it into MSR_LE each time, we simply create a new variable intr_msr which contains the entire MSR to use. For a little-endian guest, userspace needs

[PATCH 15/18] KVM: PPC: Book3S HV: Add software abort codes for transactional memory

2014-01-08 Thread Paul Mackerras
From: Michael Neuling This adds the software abort code defines for transactional memory (TM). These values are from PAPR. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- arch/powerpc/include/uapi/asm/tm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/inc

[PATCH 05/18] KVM: PPC: Book3S HV: Add handler for HV facility unavailable

2014-01-08 Thread Paul Mackerras
From: Michael Ellerman At present this should never happen, since the host kernel sets HFSCR to allow access to all facilities. It's better to be prepared to handle it cleanly if it does ever happen, though. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras --- arch/powerpc/inclu

[PATCH 02/18] KVM: PPC: Book3S HV: Align physical and virtual CPU thread numbers

2014-01-08 Thread Paul Mackerras
On a threaded processor such as POWER7, we group VCPUs into virtual cores and arrange that the VCPUs in a virtual core run on the same physical core. Currently we don't enforce any correspondence between virtual thread numbers within a virtual core and physical thread numbers. Physical threads ar

[PATCH 10/18] KVM: PPC: Book3S HV: Prepare for host using hypervisor doorbells

2014-01-08 Thread Paul Mackerras
POWER8 has support for hypervisor doorbell interrupts. Though the kernel doesn't use them for IPIs on the powernv platform yet, it probably will in future, so this makes KVM cope gracefully if a hypervisor doorbell interrupt arrives while in a guest. Signed-off-by: Paul Mackerras --- arch/power

[PATCH 07/18] KVM: PPC: Book3S HV: Consolidate code that checks reason for wake from nap

2014-01-08 Thread Paul Mackerras
Currently in book3s_hv_rmhandlers.S we have three places where we have woken up from nap mode and we check the reason field in SRR1 to see what event woke us up. This consolidates them into a new function, kvmppc_check_wake_reason. It looks at the wake reason field in SRR1, and if it indicates th

[PATCH 09/18] KVM: PPC: Book3S HV: Handle new LPCR bits on POWER8

2014-01-08 Thread Paul Mackerras
POWER8 has a bit in the LPCR to enable or disable the PURR and SPURR registers to count when in the guest. Set this bit. POWER8 has a field in the LPCR called AIL (Alternate Interrupt Location) which is used to enable relocation-on interrupts. Allow userspace to set this field. Signed-off-by: P

[PATCH 14/18] KVM: PPC: Book3S HV: Add new state for transactional memory

2014-01-08 Thread Paul Mackerras
From: Michael Neuling Add new state for transactional memory (TM) to kvm_vcpu_arch. Also add asm-offset bits that are going to be required. This also moves the existing TFHAR, TFIAR and TEXASR SPRs into a CONFIG_PPC_TRANSACTIONAL_MEM section. This requires some code changes to ensure we still

[PATCH 17/18] KVM: PPC: Book3S HV: Add get/set_one_reg for new TM state

2014-01-08 Thread Paul Mackerras
From: Michael Neuling This adds code to get/set_one_reg to read and write the new transactional memory (TM) state. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_hv.c | 147 --- 1 file changed, 125 insertions(+)

[PATCH 08/18] KVM: PPC: Book3S HV: Handle guest using doorbells for IPIs

2014-01-08 Thread Paul Mackerras
* SRR1 wake reason field for system reset interrupt on wakeup from nap is now a 4-bit field on P8, compared to 3 bits on P7. * Set PECEDP in LPCR when napping because of H_CEDE so guest doorbells will wake us up. * Waking up from nap because of a guest doorbell interrupt is not a reason to

[PATCH 04/18] KVM: PPC: Book3S HV: Flush the correct number of TLB sets on POWER8

2014-01-08 Thread Paul Mackerras
POWER8 has 512 sets in the TLB, compared to 128 for POWER7, so we need to do more tlbiel instructions when flushing the TLB on POWER8. Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc

[PATCH 13/18] powerpc/Kconfig: Make TM select VSX and VMX

2014-01-08 Thread Paul Mackerras
From: Michael Neuling There are no processors in existence that have TM but no VMX or VSX. So let's makes CONFIG_PPC_TRANSACTIONAL_MEM select both CONFIG_VSX and CONFIG_ALTIVEC. This makes the code a lot simpler by removing the need for a bunch of #ifdefs. Signed-off-by: Michael Neuling Signed

[PATCH 18/18] KVM: PPC: Book3S PR: Cope with doorbell interrupts

2014-01-08 Thread Paul Mackerras
When the PR host is running on a POWER8 machine in POWER8 mode, it will use doorbell interrupts for IPIs. If one of them arrives while we are in the guest, we pop out of the guest with trap number 0xA00, which isn't handled by kvmppc_handle_exit_pr, leading to the following BUG_ON: [ 331.436215]

[PATCH 16/18] KVM: PPC: Book3S HV: Add transactional memory support

2014-01-08 Thread Paul Mackerras
This adds saving of the transactional memory (TM) checkpointed state on guest entry and exit. We only do this if we see that the guest has an active transaction. It also adds emulation of the TM state changes when delivering IRQs into the guest. According to the architecture, if we are transacti

[PATCH 00/18] KVM: PPC: Book3S HV: POWER8 support

2014-01-08 Thread Paul Mackerras
This series of patches adds support for the new POWER8 processor in HV-mode KVM. The series is based on a merge of Alex Graf's for-3.13 tree into his kvm-ppc-queue tree, as there are some important bugfixes in the for-3.13 tree that touch code that these patches also touch. The last patch is actua

[PATCH 01/18] KVM: PPC: Book3S HV: Don't set DABR on POWER8

2014-01-08 Thread Paul Mackerras
From: Michael Neuling POWER8 doesn't have the DABR and DABRX registers; instead it has new DAWR/DAWRX registers, which will be handled in a later patch. Signed-off-by: Michael Neuling Signed-off-by: Paul Mackerras --- arch/powerpc/kvm/book3s_hv_interrupts.S | 2 ++ arch/powerpc/kvm/book3s_hv