Skip to contentSkip to conversation

The list of KVM/ARM fixes for 3.14.y stable kernel

PATCH In review Shannon Zhao 4 participants 9 messages May 14, 2015 – Jun 2, 2015 Stable branch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 The list of KVM/ARM fixes for 3.14.y stable kernel

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

2d58b73 arm64: KVM: force cache clean on page fault when caches are off
2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access
4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON
a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off
46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses
547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses
ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range
df6ce24 ARM: KVM: Unmap IPA on memslot delete/move
b886576 ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping
efd48ce arm64: KVM: export demux regids as KVM_REG_ARM64
af92394 ARM: virt: fix wrong HSCTLR.EE bit setting
ba083d2 ARM64: KVM: store kvm_vcpu_fault_info est_el2 as word
6951e48 KVM: ARM/arm64: fix non-const declaration of function returning const 4000be4 KVM: ARM/arm64: fix broken __percpu annotation
18d4576 KVM: ARM/arm64: avoid returning negative error code as bool
1fa451b KVM: vgic: return int instead of bool when checking I/O ranges
a7d079c ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault()
71afaba KVM: ARM: vgic: plug irq injection race
0fea6d7 arm/arm64: KVM: Fix set_clear_sgi_pend_reg offset
dbff124 arm/arm64: KVM: Fix VTTBR_BADDR_MASK and pgd alloc
37a34ac arm: kvm: fix CPU hotplug
37b5440 arm/arm64: KVM: fix potential NULL dereference in user_mem_abort() c3058d5 arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE
3d08c62 arm: kvm: STRICT_MM_TYPECHECKS fix for user_mem_abort
7cbb87d arm64: KVM: fix unmapping with 48-bit VAs
6b50f54 arm/arm64: KVM: vgic: Fix error code in kvm_vgic_create()
286fb1c arm64/kvm: Fix assembler compatibility of macros
07a9748 arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()
03f1d4c arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag
3ad8b3d arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option
b856a59 arm/arm64: KVM: Reset the HCR on each vcpu when resetting the vcpu 957db10 arm/arm64: KVM: Introduce stage2_unmap_vm
716139d arm/arm64: KVM: Don't allow creating VCPUs after vgic_initialized 0597112 arm/arm64: KVM: Require in-kernel vgic for the arch timers
55e858b arm64: KVM: Fix TLB invalidation by IPA/VMID
801f677 arm64: KVM: Fix HCR setting for 32bit guests
04b8dc8 arm64: KVM: Do not use pgd_index to index stage-2 pgd
ae70593 arm/arm64: KVM: Keep elrsr/aisr in sync with software model

Please note among them there are 9 patches which can't apply cleanly. And to commit ae70593, it's hard to apply because it would require applying full GICv3 support, which is out of scope for the stable kernels. We can offer a backport of this patch subsequently.

4f853a7 arm/arm64: KVM: Fix and refactor unmap_range a7d079c ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault() 71afaba KVM: ARM: vgic: plug irq injection race
c3058d5 arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE 7cbb87d arm64: KVM: fix unmapping with 48-bit VAs 07a9748 arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn() 0597112 arm/arm64: KVM: Require in-kernel vgic for the arch timers 04b8dc8 arm64: KVM: Do not use pgd_index to index stage-2 pgd ae70593 arm/arm64: KVM: Keep elrsr/aisr in sync with software model

Thanks,

Signature · 1 line
Shannon
maintainer
#1 lore raw
Quoted 5 lines · Shannon Zhao

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

Quoted 16 lines

2d58b73 arm64: KVM: force cache clean on page fault when caches are off
2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access
4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON
a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off
46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses
547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses
ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range

I've stopped applying things at this point in time, as this commit, as you mention, doesn't apply cleanly.

Can you provide a working backport of it?

Or better yet, a backport of the ones that you know I will need?

I'll go do the next 3.14-rc release with the above patches included, so if you could resend the list of what I haven't applied so far, that would be great.

thanks,

greg k-h

#2 lore raw
Quoted 22 lines · Greg KH
Quoted 5 lines · Shannon Zhao
Quoted 5 lines

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

Quoted 16 lines
Quoted 8 lines

2d58b73 arm64: KVM: force cache clean on page fault when caches are off 2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access 4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off 46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses 547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses

Quoted 8 lines

ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range

Quoted 7 lines

I've stopped applying things at this point in time, as this commit, as you mention, doesn't apply cleanly.

Can you provide a working backport of it?

Or better yet, a backport of the ones that you know I will need?

Of course I can and I have already do that for you. You can get all of them from following address:

http://thread.gmane.org/gmane.linux.kernel.stable/134174

And also can get them from:

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

Thanks,

Quoted 3 lines

I'll go do the next 3.14-rc release with the above patches included, so if you could resend the list of what I haven't applied so far, that would be great.

Signature · 1 line
Shannon
maintainer
#3 lore raw
Quoted 33 lines · Shannon Zhao
Quoted 22 lines · Greg KH
Quoted 5 lines · Shannon Zhao
Quoted 5 lines

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

Quoted 16 lines
Quoted 8 lines

2d58b73 arm64: KVM: force cache clean on page fault when caches are off 2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access 4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off 46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses 547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses

Quoted 8 lines

ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range

Quoted 7 lines

I've stopped applying things at this point in time, as this commit, as you mention, doesn't apply cleanly.

Can you provide a working backport of it?

Or better yet, a backport of the ones that you know I will need?

Quoted 8 lines

Of course I can and I have already do that for you. You can get all of them from following address:

http://thread.gmane.org/gmane.linux.kernel.stable/134174

And also can get them from:

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

But I just need the ones that need to be backported, not all of them.

And I can't dig through web links, nor can I take git pull request, for stable patches.

thanks,

greg k-h

#4 lore raw
Quoted 37 lines · Greg KH
Quoted 36 lines · Shannon Zhao
Quoted 36 lines · Greg KH
Quoted 22 lines
Quoted 22 lines · Shannon Zhao
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

2d58b73 arm64: KVM: force cache clean on page fault when caches are off
2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access
4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON
a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off
46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses
547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses
ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range

Quoted 7 lines
Quoted 7 lines

I've stopped applying things at this point in time, as this commit, as you mention, doesn't apply cleanly.

Can you provide a working backport of it?

Or better yet, a backport of the ones that you know I will need?

Of course I can and I have already do that for you. You can get all of them from following address:

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

http://thread.gmane.org/gmane.linux.kernel.stable/134174

And also can get them from:

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

But I just need the ones that need to be backported, not all of them.

Remove the part you've applied, the rest are the ones that need to be backported.

Quoted 2 lines

And I can't dig through web links, nor can I take git pull request, for stable patches.

It makes me confused. I send all the backported patches to you through mail.

Ok, let's make it clearly. Which way do you want me to send you the rest patches? Only send the needed ones through mail?

Thanks,

Signature · 1 line
Shannon
#5 lore raw
Quoted 50 lines · Shannon Zhao
Quoted 37 lines · Greg KH
Quoted 36 lines · Shannon Zhao
Quoted 36 lines · Greg KH
Quoted 22 lines
Quoted 22 lines · Shannon Zhao
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

2d58b73 arm64: KVM: force cache clean on page fault when caches are off
2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access
4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON
a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off
46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses
547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses
ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range

Quoted 7 lines
Quoted 7 lines

I've stopped applying things at this point in time, as this commit, as you mention, doesn't apply cleanly.

Can you provide a working backport of it?

Or better yet, a backport of the ones that you know I will need?

Of course I can and I have already do that for you. You can get all of them from following address:

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

http://thread.gmane.org/gmane.linux.kernel.stable/134174

And also can get them from:

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

But I just need the ones that need to be backported, not all of them.

Remove the part you've applied, the rest are the ones that need to be backported.

Quoted 8 lines
Quoted 2 lines

And I can't dig through web links, nor can I take git pull request, for stable patches.

It makes me confused. I send all the backported patches to you through mail.

Ok, let's make it clearly. Which way do you want me to send you the rest patches? Only send the needed ones through mail?

Hi Shannon,

I think I understand what Greg would like:

Send an e-mail like a cover letter to a patch series, listing the upstream commits to be applied (all of them), and then each patch in an e-mail, with clear comments in each patch which has been modified (backported) from its original commit with an explanation of why changes were necessary.

Makes sense?

Thanks,
-Christoffer

maintainer
#6 lore raw
In reply to Shannon Zhao
Quoted 5 lines · Shannon Zhao
Quoted 3 lines
Quoted 1 line
Quoted 1 line

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

But I just need the ones that need to be backported, not all of them.

Remove the part you've applied, the rest are the ones that need to be backported.

Remove it from what? I don't have anything in any email anymore.

Remember, I get over 1000 emails a day, not including mailing lists. Once I'm done with an email, I trash it, as it makes no sense for me to keep that kind of volume around.

If you want any patches to be applied to the stable tree, you are going to have to do the work to send them to me, don't expect me to dig them out from a random git tree, or some web mailing list archive.

Quoted 4 lines
Quoted 2 lines

And I can't dig through web links, nor can I take git pull request, for stable patches.

It makes me confused. I send all the backported patches to you through mail.

Old emails, long gone.

Remember, 1000 emails a day. Think about how much I have to do in order to properly manage that and still say reasonably sane.

Quoted 2 lines

Ok, let's make it clearly. Which way do you want me to send you the rest patches? Only send the needed ones through mail?

I'm tired of hand-holding, and horribly jet lagged. I've explained in detail what I need numerous times for these patches, I'm not going to do it again.

greg k-h

#7 lore raw
Quoted 8 lines · Greg KH
Quoted 5 lines · Shannon Zhao
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://git.linaro.org/people/shannon.zhao/linux-stable.git linux-3.14.y

But I just need the ones that need to be backported, not all of them.

Remove the part you've applied, the rest are the ones that need to be backported.

Remove it from what? I don't have anything in any email anymore.

Quoted 8 lines

Remember, I get over 1000 emails a day, not including mailing lists. Once I'm done with an email, I trash it, as it makes no sense for me to keep that kind of volume around.

If you want any patches to be applied to the stable tree, you are going to have to do the work to send them to me, don't expect me to dig them out from a random git tree, or some web mailing list archive.

Ok, will send you the rest patches through email.

Thanks,

Signature · 1 line
Shannon
#8 lore raw
In reply to Shannon Zhao
Quoted 5 lines · Shannon Zhao

Hi Greg,

Below are the git commit ids of KVM/ARM fixes that should be applied to the 3.14-stable kernel tree from top to buttom order.

I'm also queuing for the 3.16 kernel those commits that aren't present in this kernel version. Thanks!

Cheers,
--
Lu�s

Quoted 70 lines

2d58b73 arm64: KVM: force cache clean on page fault when caches are off
2072d29 arm64: KVM: allows discrimination of AArch32 sysreg access
4d44923 arm64: KVM: trap VM system registers until MMU and caches are ON
a3c8bd3 ARM: KVM: introduce kvm_p*d_addr_end
9d218a1 arm64: KVM: flush VM pages before letting the guest enable caches 1597930 ARM: KVM: force cache clean on page fault when caches are off
46c214d ARM: KVM: fix handling of trapped 64bit coprocessor accesses
547f781 ARM: KVM: fix ordering of 64bit coprocessor accesses
ac30a11 ARM: KVM: introduce per-vcpu HYP Configuration Register
af20814 ARM: KVM: add world-switch for AMAIR{0,1}
8034699 ARM: KVM: trap VM system registers until MMU and caches are ON
f2ae85b KVM: arm/arm64: vgic: fix GICD_ICFGR register accesses
30c2117 KVM: ARM: vgic: Fix the overlap check action about setting the GICD & GICC base address. ee9e101 arm64: kvm: use inner-shareable barriers for inner-shareable maintenance 63afbe7 kvm: arm64: vgic: fix hyp panic with 64k pages on juno platform
4f853a7 arm/arm64: KVM: Fix and refactor unmap_range
df6ce24 ARM: KVM: Unmap IPA on memslot delete/move
b886576 ARM: KVM: user_mem_abort: support stage 2 MMIO page mapping
efd48ce arm64: KVM: export demux regids as KVM_REG_ARM64
af92394 ARM: virt: fix wrong HSCTLR.EE bit setting
ba083d2 ARM64: KVM: store kvm_vcpu_fault_info est_el2 as word
6951e48 KVM: ARM/arm64: fix non-const declaration of function returning const 4000be4 KVM: ARM/arm64: fix broken __percpu annotation
18d4576 KVM: ARM/arm64: avoid returning negative error code as bool
1fa451b KVM: vgic: return int instead of bool when checking I/O ranges
a7d079c ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault()
71afaba KVM: ARM: vgic: plug irq injection race
0fea6d7 arm/arm64: KVM: Fix set_clear_sgi_pend_reg offset
dbff124 arm/arm64: KVM: Fix VTTBR_BADDR_MASK and pgd alloc
37a34ac arm: kvm: fix CPU hotplug
37b5440 arm/arm64: KVM: fix potential NULL dereference in user_mem_abort() c3058d5 arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE
3d08c62 arm: kvm: STRICT_MM_TYPECHECKS fix for user_mem_abort
7cbb87d arm64: KVM: fix unmapping with 48-bit VAs
6b50f54 arm/arm64: KVM: vgic: Fix error code in kvm_vgic_create()
286fb1c arm64/kvm: Fix assembler compatibility of macros
07a9748 arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn()
03f1d4c arm/arm64: KVM: Don't clear the VCPU_POWER_OFF flag
3ad8b3d arm/arm64: KVM: Correct KVM_ARM_VCPU_INIT power off option
b856a59 arm/arm64: KVM: Reset the HCR on each vcpu when resetting the vcpu 957db10 arm/arm64: KVM: Introduce stage2_unmap_vm
716139d arm/arm64: KVM: Don't allow creating VCPUs after vgic_initialized 0597112 arm/arm64: KVM: Require in-kernel vgic for the arch timers
55e858b arm64: KVM: Fix TLB invalidation by IPA/VMID
801f677 arm64: KVM: Fix HCR setting for 32bit guests
04b8dc8 arm64: KVM: Do not use pgd_index to index stage-2 pgd
ae70593 arm/arm64: KVM: Keep elrsr/aisr in sync with software model

Please note among them there are 9 patches which can't apply cleanly. And to commit ae70593, it's hard to apply because it would require applying full GICv3 support, which is out of scope for the stable kernels. We can offer a backport of this patch subsequently.

4f853a7 arm/arm64: KVM: Fix and refactor unmap_range a7d079c ARM/arm64: KVM: fix use of WnR bit in kvm_is_write_fault() 71afaba KVM: ARM: vgic: plug irq injection race
c3058d5 arm/arm64: KVM: Ensure memslots are within KVM_PHYS_SIZE 7cbb87d arm64: KVM: fix unmapping with 48-bit VAs 07a9748 arm/arm64: kvm: drop inappropriate use of kvm_is_mmio_pfn() 0597112 arm/arm64: KVM: Require in-kernel vgic for the arch timers 04b8dc8 arm64: KVM: Do not use pgd_index to index stage-2 pgd ae70593 arm/arm64: KVM: Keep elrsr/aisr in sync with software model

Thanks,

Signature · 5 lines
Shannon
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html