Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1841956ybh; Mon, 20 Jul 2020 08:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEWNyEmTulk7yPwXbk9bsLYDKM6OaQCsEMXSvtQC/9V/X1lCQhTFq/fVrucEvQzzchb30t X-Received: by 2002:a17:906:dbe9:: with SMTP id yd9mr21783352ejb.75.1595258962841; Mon, 20 Jul 2020 08:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595258962; cv=none; d=google.com; s=arc-20160816; b=Zpn3wJsdgJptyMjXNIecjQQXSSxxFqpQbJDCCYiwINGGoGw0V1rU/0lFcpUFNgEuVO tKQjOf+6LknBMQQ3CC+KyOmkiMhY66Vm+bXM/v1Lcb3BtcjRdWs5rKaLN8ARJe1vjpdC bZapZED+wSVR5TJ5MtNrskYeD2BMlNRwSwMNQt4HE7x9YUDvszPu5uFSvtJFG94Vs0Bf YRWmS4b/yEklxwxfMXEnTHPJphWXFg/Rb+o/JKeVY9NcS0cC735PzkWwUVURgJVshmKd TyoKUOlujuC9dssZ6XNWjAkU8/VbMFsk9zMBouxnzGTQckTwFan6qNRiri4uv/U+2rzE 5GBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wdh/3oobHD34a1kJiuWq2ijPPTIyAhzdnaJOlh4baoc=; b=C80Ex3QNrzZlwHzfaygY/uz2vWxIiejjBroLky3NA/YoFeizg4BQMQBoMkddn+ir5T GTlYfmE2Qd4ZE49OLnZb4w8AeEaveBRwn5NqXppXSdN5wf3PfgEXvPeVkb83SVdScJq9 lYzyiZWir8M+vJotjCRTXaTW+JUYNAzg5m25Jo2qQYtjfBbMyi07C58/TfBtLeJInS3M +27Efl+OkoimDJ6HQFg+JAE/83U0CKbQaBDNBKb+ZDOSgP2iR529iJhsXHGR4a9ouX6+ TbT024ayXnpmegZfEsCUaIgWAmEjv5r/1DnBf9FXJwniNBIrJDWhYDvdafTqI9zwXdTV hrJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UryDttv0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si10849467edr.225.2020.07.20.08.28.59; Mon, 20 Jul 2020 08:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UryDttv0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbgGTP2r (ORCPT + 99 others); Mon, 20 Jul 2020 11:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgGTP2r (ORCPT ); Mon, 20 Jul 2020 11:28:47 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD0CDC061794 for ; Mon, 20 Jul 2020 08:28:46 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id 18so12491638otv.6 for ; Mon, 20 Jul 2020 08:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wdh/3oobHD34a1kJiuWq2ijPPTIyAhzdnaJOlh4baoc=; b=UryDttv08+Kd0782Ub9jObflwCo8KN1o0aD8XVBshgaChXB90YeJO530ewsyByqXTF AolsatR1PSYBGlkIVDrbVOwordJi1QMccuXNLspdRg9WMK0ujskd/HwRBFOzfBw2XRrk 83tN/LB1+HDgaoVe6tLiPOfCqxSqoKDO8v5GRWC1HyNG4qNuj8qJZO93z4fOi00n4f7y suTwI4BNLl203srmzUadzj1q0v30jjDsn8mUXAJ6Y3Jlq1+wXyKWWXLh0NwXjmC1NtI6 6TtsLkhCdrPkAu5Citobl/Fp88+0vwJMNe0oNL0nponhuXzcsvRRX2feztaCUr/txyJJ Z9Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wdh/3oobHD34a1kJiuWq2ijPPTIyAhzdnaJOlh4baoc=; b=ju5jLRt9k0mabE+OAnzJvhiky/Ks4ubAe74VHEEMr45/Aup9ZvS0X2hWxAvGyZ6LHY B4KY6UvZSJWdSuXFWMQM0jD/r6OILdkvv5k5huXGYMJ0tMhtcRniNdVDedg+rAsmBN4a +6eobY3lvE7jFp6MRGdLMJyNQkAmYAPsLv1Kq/+BS1g5puQwV1b3/zCgPFI/IeU5xDd3 kFNSC/Hx4TziaLlfhqJFfw94ujWXxk9WcTISdmXPx41Vw6+AXriLyIq599kTRlbWR3Qa z0c3B3j54EecEilXUGRTd0qBsC/WewVz/+zU6aoHie54o8XZuCFHdVXR9ktdgu7YQAf0 LSHQ== X-Gm-Message-State: AOAM5303emeWPithNsdWPwGP9oPXC/ioMSRsxOqs8mXT+P0NBDdMoGhU FH/nY6QmBl3LLuBMx2OD8ZoJgrbpaujp+ZEAnsv0sA== X-Received: by 2002:a05:6830:10ce:: with SMTP id z14mr21044319oto.135.1595258926244; Mon, 20 Jul 2020 08:28:46 -0700 (PDT) MIME-Version: 1.0 References: <20200714105505.935079-1-hch@lst.de> <20200714105505.935079-2-hch@lst.de> <20200718013849.GA157764@roeck-us.net> <20200718094846.GA8593@lst.de> <20200720100104.GA20196@lst.de> In-Reply-To: From: Peter Maydell Date: Mon, 20 Jul 2020 16:28:35 +0100 Message-ID: Subject: Re: [PATCH 1/6] syscalls: use uaccess_kernel in addr_limit_user_check To: Guenter Roeck Cc: Christoph Hellwig , linux-arch@vger.kernel.org, lkml - Kernel Mailing List , Vladimir Murzin , arm-mail-list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jul 2020 at 15:55, Guenter Roeck wrote: > Ah, sorry, you can't use the upstream version of qemu to test mps2-an385 > Linux images. You'll have to use a version from https://github.com/groeck/qemu. > I'd recommend to use the v5.0.0-local branch. > > I had to make some changes to qemu to be able to boot mps2-an385. > I tried to submit those changes into upstream qemu, but that was > rejected because, as I was told, the qemu implementation > would no longer reflect the real hardware with those changes in > place. Yes; the rationale is that if you wanted to boot a kernel on an actual MPS2 board you'd need a bit of guest code to start it up (and to bundle the initrd/dtb in with it), so since you need to write that code anyway you could use it for booting the kernel in QEMU too. I appreciate that this is awkward for kernel developers (and perhaps for some other users too), but QEMU's handling of -kernel and built-in-bootloader code is already a morass of special cases and do-what-I-mean behaviour that I'm not enthusiastic about further complicating :-) (https://lists.gnu.org/archive/html/qemu-arm/2018-06/msg00393.html has the archive of our original discussion on the point, for other readers of this post interested in further context and discussion.) thanks -- PMM