Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-04-04 Thread Marc Zyngier
Hi Mark, On 03/04/18 17:49, Mark Rutland wrote: > On Thu, Mar 29, 2018 at 04:27:58PM +0100, Mark Rutland wrote: >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: >>> From: zhaoshenglong >>> >>> Currently the VMID for some VM is allocated during VCPU entry/exit >>> context and will

[PATCH] kvm: arm: remove BUG(preemptible()) check

2018-04-04 Thread Sebastian Andrzej Siewior
native KVM crashes on -RT: |[ cut here ] |kernel BUG virt/kvm/arm/arm.c:82! |Internal error: Oops - BUG: 0 [#1] PREEMPT SMP |Modules linked in: |CPU: 3 PID: 1527 Comm: qemu-system-aar Tainted: GW 4.14.29-rt25+ #48 |Hardware name: Freescale Layerscape 2088A RDB

Re: [RFC PATCH v2 13/15] khwasan: add hooks implementation

2018-04-04 Thread Andrey Ryabinin
On 04/03/2018 05:59 PM, Andrey Konovalov wrote: >> >> >>> void check_memory_region(unsigned long addr, size_t size, bool write, >>> unsigned long ret_ip) >>> { >>> + u8 tag; >>> + u8 *shadow_first, *shadow_last, *shadow; >>> + void *untagged_addr; >>> +

Re: [PATCH] kvm: arm: remove BUG(preemptible()) check

2018-04-04 Thread Sebastian Andrzej Siewior
On 2018-04-04 15:50:52 [+0200], To kvmarm@lists.cs.columbia.edu wrote: already applied as 5a2457503297 ("KVM: arm/arm64: Remove redundant preemptible checks") Sebastian ___ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu

Re: [PATCH] KVM: ARM: updtae the VMID generation logic

2018-04-04 Thread Marc Zyngier
On 03/04/18 17:49, Mark Rutland wrote: > On Thu, Mar 29, 2018 at 04:27:58PM +0100, Mark Rutland wrote: >> On Thu, Mar 29, 2018 at 11:00:24PM +0800, Shannon Zhao wrote: >>> From: zhaoshenglong >>> >>> Currently the VMID for some VM is allocated during VCPU entry/exit >>> context and will be updated

Re: [RFC PATCH v2 13/15] khwasan: add hooks implementation

2018-04-04 Thread Andrey Konovalov
On Wed, Apr 4, 2018 at 2:39 PM, Andrey Ryabinin wrote: >>> >>> You can save tag somewhere in page struct and make page_address() return >>> tagged address. >>> >>> I'm not sure it might be even possible to squeeze the tag into page->flags >>> on some configurations, >>> see include/linux/page-fl