[v4 3/4] arm64: kvm: remove !KEXEC dependency

2015-05-07 Thread AKASHI Takahiro
By indroducing cpu kvm hotplug, this dependency is not needed any more. Signed-off-by: AKASHI Takahiro --- arch/arm64/kvm/Kconfig |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index 30ae7a7..f5590c8 100644 --- a/arch/arm64/kvm/Kconfig +++ b

[v4 4/4] arm: kvm: add stub implementation for kvm_cpu_reset()

2015-05-07 Thread AKASHI Takahiro
Just to avoid compiling errors on arm. Signed-off-by: AKASHI Takahiro --- arch/arm/include/asm/kvm_asm.h |1 + arch/arm/include/asm/kvm_host.h | 12 arch/arm/include/asm/kvm_mmu.h |5 + arch/arm/kvm/init.S |6 ++ 4 files changed, 24 insertions(+)

[v4 2/4] arm64: kvm: add kvm cpu hotplug

2015-05-07 Thread AKASHI Takahiro
This patch allows cpu cores to be up and down by adding kvm_arch_hardware_enable/isable(). This way, especially in kexec case, cores are reset to initial states and kexec can gracefully shutdown the system and reboot a new kernel from EL2. Signed-off-by: AKASHI Takahiro --- arch/arm/include/asm/

[v4 0/4] arm64: kvm: reset hyp context for kexec

2015-05-07 Thread AKASHI Takahiro
This patch set addresses KVM issue described in Geoff's kexec patch set[1]. See "Changes" below. Initially, I used reboot notifier hook to shut down cpu cores, but in this version, kvm cpu hotplug is implemented after Mark's comment. I confirmed that it works with kexec under the following scenari

[v4 1/4] arm64: kvm: add a cpu tear-down function

2015-05-07 Thread AKASHI Takahiro
Cpu must be put back into its initial state, at least, in the following cases in order to shutdown the system and/or re-initialize cpus later on: 1) kexec/kdump 2) cpu hotplug (offline) 3) removing kvm as a module To address those issues in later patches, this patch adds a tear-down function, kvm_

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-07 Thread Don Dutile
On 05/07/2015 10:00 AM, Dave Young wrote: On 04/07/15 at 10:12am, Don Dutile wrote: On 04/06/2015 11:46 PM, Dave Young wrote: On 04/05/15 at 09:54am, Baoquan He wrote: On 04/03/15 at 05:21pm, Dave Young wrote: On 04/03/15 at 05:01pm, Li, ZhenHua wrote: Hi Dave, There may be some possibiliti

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-07 Thread Dave Young
On 05/04/15 at 01:05pm, Joerg Roedel wrote: > On Fri, Apr 03, 2015 at 04:40:31PM +0800, Dave Young wrote: > > Have not read all the patches, but I have a question, not sure this > > has been answered before. Old memory is not reliable, what if the old > > memory get corrupted before panic? Is it sa

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-07 Thread Dave Young
On 04/07/15 at 10:12am, Don Dutile wrote: > On 04/06/2015 11:46 PM, Dave Young wrote: > >On 04/05/15 at 09:54am, Baoquan He wrote: > >>On 04/03/15 at 05:21pm, Dave Young wrote: > >>>On 04/03/15 at 05:01pm, Li, ZhenHua wrote: > Hi Dave, > > There may be some possibilities that the old i

Re: [PATCH RFC 0/3] arm64: disable/enable d-cache support for

2015-05-07 Thread Geoff Levand
On Thu, 2015-05-07 at 10:24 +0530, Pratyush Anand wrote: > @Geoff: Do you see any specific side effect for enabling D-cache in > purgatory, other than the fact that it increases size of purgatory? May > be we can keep an user option to select/not select d-cache enabling. The checks in purgatory

Re: [PATCH v9 0/10] iommu/vt-d: Fix intel vt-d faults in kdump kernel

2015-05-07 Thread Dave Young
On 05/06/15 at 10:16am, Joerg Roedel wrote: > On Wed, May 06, 2015 at 09:46:49AM +0800, Dave Young wrote: > > For the original problem, the key issue is dmar faults cause kdump kernel > > hang so that vmcore can not be saved. I do not know the reason why it hangs > > I think it is acceptable if kdu

Re: [PATCH v10 04/10] iommu/vt-d: functions to copy data from old mem

2015-05-07 Thread Li, ZhenHua
It is called in static int copy_root_entry_table(struct intel_iommu *iommu); On 05/07/2015 03:49 PM, Baoquan He wrote: On 04/10/15 at 04:42pm, Li, Zhen-Hua wrote: Add some functions to copy the data from old kernel. These functions are used to copy context tables and page tables. To avoid cal

Re: [PATCH v10 04/10] iommu/vt-d: functions to copy data from old mem

2015-05-07 Thread Baoquan He
On 04/10/15 at 04:42pm, Li, Zhen-Hua wrote: > Add some functions to copy the data from old kernel. > These functions are used to copy context tables and page tables. > > To avoid calling iounmap between spin_lock_irqsave and spin_unlock_irqrestore, > use a link here, store the pointers , and then