Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2724935pxy; Mon, 3 May 2021 06:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBo4xsbwFe6Mea3r0bVLEmawZHYXLEmwpm6rUyIC/jVBPRiFEZiWJMP3T0B/rtW8xYXael X-Received: by 2002:a17:907:724d:: with SMTP id ds13mr17005624ejc.442.1620049443374; Mon, 03 May 2021 06:44:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620049443; cv=pass; d=google.com; s=arc-20160816; b=G/CJ+ODRtDAHPmJHWKI4JNME68db2TmHNsSqs2hCI2g1c+lww7P1vf5SJbpBX/b4Pi AdSKkgqg7QzzMmOwCuUXocL08ShRRTdF1zkIUQxX2y46xsWd8dLtnFdyG5lDkTIOhLRp iyzjeeCAvNdJ5FQRDUbXrN3kDEPozDBtRTBU18hVSPNemNqF3vmHZzadoMLBSC4k+/NT yxLYqhlTKcraVdP8N/q0XoeSyEZykHp3s9FjuaZD/un99R8q0lOkB7fo1Dk4EOoSaQ+9 N2chIjZAQ8l8yXWHKlaV04dRZ4rObx5hBEaFmpGhvToSkVK/j6aYdBs+3q/Og7WVDoNE 8RGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Okk0d8HxcNPcwhwIKMcT2nO57+6T0VR68IWu0Ahzh5Q=; b=JJekDYx4PwftqE+AT4MPMijRQ3T9FLng3oBywO2kPT8vhTw71oUL/VKHXPhTsBSrtD VqREBv10NcCw2iSoTjcyRAdJjgbu0iIUu3LFDgNu/NGPxXgR12RiV9cHI/hzizth+UXM EOKEPY7NZzTNZZL9RwLZs+vS7gxz16Jr+EQlxwtZITg8gXBGO8mFB4PzTUMiZwdbHira 2UXFkAueAap9aZ72ZQzIwY2OPCnq7Bl0VdHqxON1LzDY6fw3kiZQDo6QFDRVJ3uFA3PN 5DurAqEkb8Ai5TwmXWcVJVjFuLlTQ98VLgGkrwDovZCFZOTCtfBSqctoHCff79ORspq/ PXyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=fZpCAzRp; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si8810634edr.171.2021.05.03.06.43.38; Mon, 03 May 2021 06:44:03 -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=@Nvidia.com header.s=selector2 header.b=fZpCAzRp; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234209AbhECMKE (ORCPT + 99 others); Mon, 3 May 2021 08:10:04 -0400 Received: from mail-mw2nam12on2081.outbound.protection.outlook.com ([40.107.244.81]:8026 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233639AbhECMJN (ORCPT ); Mon, 3 May 2021 08:09:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NfivL4a7ZjuKmNNJfAmGAXvVbryz/0NIuduouqFHcJx8qRmjIkhG9WkksmIomvw/TUJCq7SylG1nSN3tGIklmuR+PtvXMPco0hf/Tmy3Vz042F9OhbPD3ryx1odYbXlkdFWwuip1yAPnm8U2lkXrwf0rjFHUCdDTBM6Oi9LafiXa5Zhh5WH/2AJBdggTzqGPU5+19tzKSVJcvrgr9xtZRhPJYQta6kyKigHuXjivVTa3lAbX5E6Bpp7Ua+Jt+m2FbWI5Ksm3HOMvZ9ST+MKTSpnQjKmV0zBpgWQKGuXV3nzSWk1hrbWd967r6UmFx01M948vUltNQ0ee/PdnzEYCUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Okk0d8HxcNPcwhwIKMcT2nO57+6T0VR68IWu0Ahzh5Q=; b=ODaYepuppYCImSntXTth/4AriJqOUU2bg3RhsaxXAWEM38SLuyNwjk7Enr1+PlVpCuex3G6iTcG1uLv4ce0fTIXhUEIzkHtRLIFWP+kUNSpxJ++COKiezM3frJA4N5OU9zLgRHE5OEbtfbHuI9NXZl1DtHq33qPeStnAGpH2BdORSeTlOvOpsbRRlHkwoQI23vFfXHtSVks3ffZhGEbriTdeFn9BJ2rZU8ORBxpSv91Tu5t4NmC3vhl9t+zwMglzWobMBhguHgWFBP+c+RSyMNWARcE6j03DgGHQI0CJkJ5fDsHcpTKNiQGXZ1MW/usSCpi+sv/UEeC7T8+xPZSWbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Okk0d8HxcNPcwhwIKMcT2nO57+6T0VR68IWu0Ahzh5Q=; b=fZpCAzRpklcMd9lIsuVHoJ+tEnO3ifDSZkOvGmdpG4FMKtJQdvcoPBRZM5zmQVny82TtiPvAPITuCcQulkdUa2k2z6ZYkf4X5cYQtDNqHzdmp6g6Zbo2l63mQpb6ZI8GgDX5YIEdDvBibpHgb61zhx3M19GvO6oISDDuZPSYjApgG4LOZuiWUayRDKTCV/2csvroTT2I3wBgJ4+J6z29YVza/XLYFfLPKhvWWsqX2yhwO+SEnDpvPvSyuinGCJjp+WKZlWjazwqtNAKV/Z6zg/MHuTM71D/Gbss8pB77yUZC5abcVw2PRl4mKRe+MNIEs8eRF2UnBoJMABnXrHuBdA== Received: from BN6PR22CA0040.namprd22.prod.outlook.com (2603:10b6:404:37::26) by DM6PR12MB2828.namprd12.prod.outlook.com (2603:10b6:5:77::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.40; Mon, 3 May 2021 12:08:18 +0000 Received: from BN8NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:404:37:cafe::24) by BN6PR22CA0040.outlook.office365.com (2603:10b6:404:37::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25 via Frontend Transport; Mon, 3 May 2021 12:08:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT064.mail.protection.outlook.com (10.13.176.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4087.27 via Frontend Transport; Mon, 3 May 2021 12:08:18 +0000 Received: from [10.20.22.163] (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 May 2021 12:08:17 +0000 Subject: Re: [RFC 1/2] vfio/pci: keep the prefetchable attribute of a BAR region in VMA To: Marc Zyngier CC: Vikram Sethi , Alex Williamson , Will Deacon , Catalin Marinas , Christoffer Dall , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Jason Sequeira References: <20210429162906.32742-1-sdonthineni@nvidia.com> <20210429162906.32742-2-sdonthineni@nvidia.com> <20210429122840.4f98f78e@redhat.com> <470360a7-0242-9ae5-816f-13608f957bf6@nvidia.com> <20210429134659.321a5c3c@redhat.com> <87czucngdc.wl-maz@kernel.org> <1edb2c4e-23f0-5730-245b-fc6d289951e1@nvidia.com> <878s4zokll.wl-maz@kernel.org> <87eeeqvm1d.wl-maz@kernel.org> <49e26646-9f05-ccb8-f5c1-73a92ab79972@nvidia.com> <87czu8uowe.wl-maz@kernel.org> From: Shanker R Donthineni Message-ID: <22e592c5-58e5-5456-311d-3d23303a91ac@nvidia.com> Date: Mon, 3 May 2021 07:08:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87czu8uowe.wl-maz@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ba67fa3-f649-435e-bb63-08d90e2c2381 X-MS-TrafficTypeDiagnostic: DM6PR12MB2828: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yrGIY+u26JS0doy5wyCBq7WqD+rIMdrb1qw0A5Y+ZcMAn/rQp6gjY/OLEKTqBX7PkjQiOqeFoZRYkV0PQZ+2ju06NbhKAjmTapiVbDB2lOzOPY3sxkH7Tpu12GWPJ+KI+p57aFpDigvaFaqCwA6p7wBrLJnjUtUTmm6MDJ0NJ+j1E7VUQWa9jeAOu9+xkhC+HWDbVXKOE/TLdtd+uxm6RGCPHkAM1bm1vIM2d56n/HgjSGNQ0d6zZzGLEks57xQAzEWTFTCWmMRwXp+gcSDy+3nF4L24qLi54TwN8OSvGtXq3zZ23+LFbdxhRl7RK5XPWHe7AMSO3TYoRdP1T/BK3VQ6Mnjm3AkNVgaezldjQ1AWSfvumZUgZusGff0JGDS6E+0KMNt7fj6Nj3AfXMm9ARkbT/vcBharAErm/tayyjpqgl/v642XqqdtguDZyggRl1KVIEsGDbg5qjNt5sgurl4v4woGIR4saJ88koezS5NeS4WiNqpc6Q829iYM12Ai+/yiIPADdFS0OUF5/ioXAxXpFYdl3s7vzBO06vsaGnzFXOW9pIdQX5QezNKGyeB1aDxiAmcsbyZ1Y7iKyH5ez1cUgr+lBCWpYDIBmmjx8zE1yGYbnnBtjfq04llCcZQniI1wD7tvOz3kLkJM++H/LJ9xHGPq0wpbSOZ813VaQGM1I0IJoTW12JiYa5i6aqPw X-Forefront-Antispam-Report: CIP:216.228.112.34;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid03.nvidia.com;CAT:NONE;SFS:(4636009)(376002)(346002)(39860400002)(136003)(396003)(36840700001)(46966006)(16526019)(186003)(31686004)(7636003)(2616005)(86362001)(2906002)(4326008)(356005)(53546011)(16576012)(316002)(82740400003)(36756003)(26005)(82310400003)(426003)(4744005)(8676002)(107886003)(54906003)(36906005)(336012)(6916009)(5660300002)(70206006)(36860700001)(478600001)(8936002)(31696002)(70586007)(47076005)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2021 12:08:18.4931 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ba67fa3-f649-435e-bb63-08d90e2c2381 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.34];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2828 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On 5/3/21 4:50 AM, Marc Zyngier wrote: > You are mixing two things: what Linux/arm64 gives to kernel drivers, > and what KVM, as an implementation of the ARMv8 architecture, gives to > virtual machines. There is zero reason for the two to match if there > is no definition of what we need to provide. Suggestion here is memory-types PROT_NORMAL_NC and PROT_DEVICE_nGnRE are applicable to braemetal only and don't use for device memory inside VM.