Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756890AbaJ2R50 (ORCPT ); Wed, 29 Oct 2014 13:57:26 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:44209 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756555AbaJ2R5V (ORCPT ); Wed, 29 Oct 2014 13:57:21 -0400 MIME-Version: 1.0 In-Reply-To: <20141029174607.GK19606@redhat.com> References: <1412356087-16115-1-git-send-email-aarcange@redhat.com> <544E1143.1080905@huawei.com> <20141029174607.GK19606@redhat.com> From: Peter Maydell Date: Wed, 29 Oct 2014 17:56:59 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH 00/17] RFC: userfault v2 To: Andrea Arcangeli Cc: zhanghailiang , Robert Love , Dave Hansen , Jan Kara , kvm-devel , Neil Brown , Stefan Hajnoczi , QEMU Developers , KOSAKI Motohiro , Michel Lespinasse , Taras Glek , Andrew Jones , Juan Quintela , Hugh Dickins , Isaku Yamahata , Mel Gorman , Sasha Levin , Android Kernel Team , "Dr. David Alan Gilbert" , "Huangpeng (Peter)" , Andres Lagar-Cavilla , Christopher Covington , Anthony Liguori , Paolo Bonzini , Keith Packard , Wenchao Xia , lkml - Kernel Mailing List , Andy Lutomirski , Minchan Kim , Dmitry Adamushko , Johannes Weiner , Mike Hommey , Andrew Morton , Peter Feiner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29 October 2014 17:46, Andrea Arcangeli wrote: > After some chat during the KVMForum I've been already thinking it > could be beneficial for some usage to give userland the information > about the fault being read or write ...I wonder if that would let us replace the current nasty mess we use in linux-user to detect read vs write faults (which uses a bunch of architecture-specific hacks including in some cases "look at the insn that triggered this SEGV and decode it to see if it was a load or a store"; see the various cpu_signal_handler() implementations in user-exec.c). -- PMM -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/