From patchwork Mon Feb 4 22:23:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 1036317 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="FlGGFQ8t"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43tj1z2nckz9sMp for ; Tue, 5 Feb 2019 09:24:53 +1100 (AEDT) Received: from localhost ([127.0.0.1]:50188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqmfX-0006t1-Hv for incoming@patchwork.ozlabs.org; Mon, 04 Feb 2019 17:24:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqmeh-0006oj-Bu for qemu-devel@nongnu.org; Mon, 04 Feb 2019 17:23:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqmec-0001g9-Nq for qemu-devel@nongnu.org; Mon, 04 Feb 2019 17:23:51 -0500 Received: from mail-eopbgr750044.outbound.protection.outlook.com ([40.107.75.44]:33504 helo=NAM02-BL2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqmec-0001ZM-7I for qemu-devel@nongnu.org; Mon, 04 Feb 2019 17:23:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bThzB4MneWjAvpJeULHYrotfeENKiF/fVzPk21LTx9c=; b=FlGGFQ8tLnlgYzlALuEb3veQbG63+dn1xU/Gw3UbJA4x9jVoMM1j+JDpasV4wjkkLKXoxiG4A4GN6mg08ECf0vg85sNXACr8aBfnaOIadmUSvsMz3YnrGop8WMTuH8HYkQmJkUTVuQ0UTgcihByce58XSnWE0fbrVHiz38KNH1M= Received: from SN6PR12MB2688.namprd12.prod.outlook.com (52.135.103.29) by SN6PR12MB2623.namprd12.prod.outlook.com (52.135.103.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1580.17; Mon, 4 Feb 2019 22:23:39 +0000 Received: from SN6PR12MB2688.namprd12.prod.outlook.com ([fe80::2cbf:7ce2:83f5:851c]) by SN6PR12MB2688.namprd12.prod.outlook.com ([fe80::2cbf:7ce2:83f5:851c%5]) with mapi id 15.20.1580.019; Mon, 4 Feb 2019 22:23:39 +0000 From: "Singh, Brijesh" To: "qemu-devel@nongnu.org" Thread-Topic: [PATCH v2 0/2] Fix SEV VM device assignment Thread-Index: AQHUvNhHy5KG1WzKNkqriZumbT3YOA== Date: Mon, 4 Feb 2019 22:23:39 +0000 Message-ID: <20190204222322.26766-1-brijesh.singh@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR08CA0012.namprd08.prod.outlook.com (2603:10b6:805:66::25) To SN6PR12MB2688.namprd12.prod.outlook.com (2603:10b6:805:6f::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN6PR12MB2623; 20:X784t8XkdwF3ABeuglrSEGFrneHzJ7VCmRmtuoTuJd5dTdvKDMUL9QIZcNN5rjtOBumja7KQ7vFZBxwpNcXJBleSIAa3+k/TOWQqDvOZHS4WOFT3tPr6RS9Kljl3ImkV0042PTSrlySkAAqRGiuQkNhFJ5+Z6TTAWJTpT4O0gQfYmY0M6Th5J8wRUWtF1LU8wsQh3Ax8nE/mY0d2ZBhIrcVqsFEDWs3xV5x3sq5/1Ywvh/HHgToqzcQfQ53tGMkP x-ms-office365-filtering-correlation-id: 4f2fac79-1b84-4e8a-35ed-08d68aef6954 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:SN6PR12MB2623; x-ms-traffictypediagnostic: SN6PR12MB2623: x-microsoft-antispam-prvs: x-forefront-prvs: 0938781D02 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(189003)(199004)(36756003)(66066001)(6506007)(106356001)(966005)(99286004)(7736002)(386003)(14454004)(478600001)(1076003)(86362001)(8936002)(81156014)(71190400001)(71200400001)(68736007)(6486002)(8676002)(81166006)(6512007)(6306002)(50226002)(305945005)(53936002)(6436002)(5640700003)(4744005)(54906003)(2616005)(6916009)(486006)(2351001)(476003)(256004)(14444005)(52116002)(2906002)(102836004)(2501003)(26005)(3846002)(6116002)(316002)(4326008)(97736004)(105586002)(25786009)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR12MB2623; H:SN6PR12MB2688.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 0uXNIZlB8D9gb2joiHNi5rpTJ09X98ZoBmhzuiwwTfQg2sEZVXkRgG7KwKbbD3wQQjreHUcL4DR5DDKNl3zjWZ/t/M7bNyjhnkyh/jtO1c+1jlh3zeMYskJA5tf2US7Y6wdU4wTa90IfaK29iy9VpFfndFyhVkAZcfBEMFZqWfaT5s0SPrh1vcixTOOfC7a1D5dHVLxrf17VwDicJAY/fD9EZ7n4qArgYLQg1B2JyFvXnlMGW0IQil4KaKxqtl+LNwobegWjs994sXRNq/eIdxJPzbTDuojaEukq1d6bh4VO1W1r5AtytgdnqDqb+MMtjfkgP4u7DskPvD6kP2z+iWVM2rdR+mLD+MtM9N57yzzsS6chUiTJTpcJGnI2SyQxOeG7u9PZ4z2EYSMFqBvy7SOeMzEHR9wFi1dcaZqhmEM= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f2fac79-1b84-4e8a-35ed-08d68aef6954 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Feb 2019 22:23:38.7216 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2623 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.75.44 Subject: [Qemu-devel] [PATCH v2 0/2] Fix SEV VM device assignment X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "alex.williamson@redhat.com" , "Singh, Brijesh" Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Fix: https://bugzilla.redhat.com/show_bug.cgi?id=1667249 Since v1: * check the error code from memory_region_from_host() before accessing the mr. Brijesh Singh (2): memory: Fix the memory region type assignment order target/i386: sev: Do not pin the ram device memory region memory.c | 9 ++++++++- target/i386/sev.c | 11 +++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-)