From patchwork Tue Jan 10 14:03:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 9507573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14D4C601EA for ; Tue, 10 Jan 2017 14:05:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0853D2850E for ; Tue, 10 Jan 2017 14:05:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F172328538; Tue, 10 Jan 2017 14:05:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4AFF32850E for ; Tue, 10 Jan 2017 14:05:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQx1O-0002Ny-IX; Tue, 10 Jan 2017 14:03:30 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQx1N-0002Ns-QU for xen-devel@lists.xen.org; Tue, 10 Jan 2017 14:03:30 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id C5/75-23854-1B9E4785; Tue, 10 Jan 2017 14:03:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WSb0gTcRjH97vdztO8Oue/x6WVSzMETelNEfT HXuQLi4gozcBudnOLbcrdjBWEEzNJUmaKbWZlJhYqZIKpCJGaq2kSapahUlrpWlhqYVpQ7XZq 9u57v8/3+3yPh4eUymdlCpI1GVnOwOiUhA+u2RYRF9P4yZgcZ50J3FEzewffixK7239hh9EJm dagyjSdkmmGGn4QWQ+8Te/b+nAzKiALkQ+J0xelUHr/HVaIvElEp8GXt1UyAcjpXAwsj4dwAR D0LnBVjnoJOoAOg/rCSi/BJKWHEbTVdsgE4E8nQm9xMxI0TkfCcLXLE6boJDBfe+7xAL0BHPZ SmfjuBw7bB49HSgN0OJ1S0aME20MzIRQAXYBg6m6+Z6icjobBJx2EaDoIPfcW3b9NevS3OUr0 92FQ9seyFJ4goOa700v8mCTg8qgFiWkdvCoaw0SdCs1OByFOKsNg8pjoLyLgVn3ukicUrL+tu AjqZNA1NOCplrs39rNyv/j+xhdqm5xLpgYCykZmMHExCvja6kCiDoVGa+WSqYSAIWu5zIIiKl YtpGLVQqoQVoeieJY7y3IxO2NVnDZDY9QzWl1MfNz2WD3L80wGq2NUfGx6pr4JuU8hRyJBrej zYkInCiExZSD11GJMlq9VZZ4+p2F4TRqXrWP5ThRKkkqgzjvdzI9jM1iTWqtz39MyBtJXGUC9 mHJjis9i9Lw2Q0Q9KFwRTO0TcrQANNmGldjyJQ6gMIU/hSQSidw3i+X0WuP/3IWCSaT0pxzCF F+twbgy3eUuxtzFKbt5odjI/EMKM8oZNKU55ZGqBht341CLuvfZy014TlJVecs80x+kGNgSd4 A2nWm329UlDcqEhavhOS3T8uObw5n8rfTJRzPJY7YrXPV4pPdte16AJTJk/mNe1YLxyDR0tV7 q7r9+M12y5+hE9VyZ94WNZErxmnWLTN/6kaDUFoPZ+TqKG2+0qZU4r2Hio6Ucz/wFisIJhYQD AAA= X-Env-Sender: Suravee.Suthikulpanit@amd.com X-Msg-Ref: server-15.tower-31.messagelabs.com!1484057006!75834575!1 X-Originating-IP: [104.47.36.48] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 35753 invoked from network); 10 Jan 2017 14:03:27 -0000 Received: from mail-sn1nam02on0048.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) (104.47.36.48) by server-15.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 10 Jan 2017 14:03:27 -0000 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; bh=oFnWPSwJ8Yw7yw91AgyI6RkxR0KMLg/Mq5v27AJaRDk=; b=lmHrcUNVbIvC+d25o4bfY0LZxPgRjlY8ieSZUiv9iqw9eWsFdG5Tjt2LUJkqMRX00z1CEvycn/2fkhou15O+55G7CFGy4A2aMuQvqZ+iKS4EbFVg3rRXt4vpSgRA9R0PpJlSaFaKB0b+6CUN9QNQrr+5Q77jC0g3nV0Fn+3Av/s= Received: from localhost.localdomain (114.109.128.54) by MWHPR12MB1455.namprd12.prod.outlook.com (10.172.55.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 14:03:23 +0000 From: Suravee Suthikulpanit To: Date: Tue, 10 Jan 2017 08:03:02 -0600 Message-ID: <1484056982-7694-1-git-send-email-suravee.suthikulpanit@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [114.109.128.54] X-ClientProxiedBy: HK2PR02CA0009.apcprd02.prod.outlook.com (10.163.104.147) To MWHPR12MB1455.namprd12.prod.outlook.com (10.172.55.136) X-MS-Office365-Filtering-Correlation-Id: 8dca3dba-9700-48d9-4f0e-08d439617214 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SR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MnIQAs8y+R7JUC/9I3L3HV2Y4V13CRB6TIMqRKCzyRvqP5tiIMieKIvY3wZchMo1rSGk6bETjn/Y0k2C/DYQ6+CzPVRPGcU= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 31:axZ2BlXhBRiRVZPLDdQR/D5F5esD/4onnojmNx3hoN2//x21Tr92m4bMDyLZ/z7gnt2A27T82b6XXC/sTtYr9v5NUEJMiS6TXloUPRzTzzynb+eeJuT43CIKJJRFB8ZiDnsmmjkhTaFFNQFYCguwlkQfKHP3WlllIx27j8zRhB77D5Ch0JoPGXVCM+B8FxbCtHpmicSQ5ufCnHE+BmiT1FcKLwAb9/AvTj3Z/5Ug8A5oPoZNIXVy1pNu45mTcggP0D37yblseIuKjRhQUTXWWyTY5UeUHeu3/kd5ls1gits=; 20:g7ATqR7mMYEh/3xPPzKh996hlG1Gj2Z2qf+fXvRAEVpV2pjxc0SvNE6O7bnTEG/qpSuwLVUmyUnQfWUhORD7h0pzyU0BVxmmEOXvxcZeq8ie4HmYk7MCZFN3I6QlBkjmLE6WyeVsdVlNDaiNQReX9xRawQuA07mNCGwVXmxpZ6OB9czsHW+G8WbMixjhgL8nSebeEkUvjDbs3k5bYAqXDcgi2vyggkATkIUDyNN785flHT57AtQ5ku4fXEcWh8qBfGrZ3Mv7fja8RGUyauQ9RxlVsqnfbD7YnafmsPu+7kZGCBkHbKWvxP3Wm9flrmhGcrNJcmohqz0Xkit0Z8Q0uwiiiO7ZfhHhj449IcDsY2Ht5NqmIPgt9HXHgk24BedMSxh9eB22mwZ3l7hXr+Eikw72JxBC6WLMWS1x07F3H8HKgum045ikGE/aiTPtnAgo3HjMF+ECscTNiJmDyKSC/x53Xv83EwTaOZvwn1o/CKNjejaIlJSk3fqjFP5q2Cpm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(146099531331640)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:MWHPR12MB1455; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1455; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 4:Ie52mJsETEO5Y0HvqU8Uwb92Dcqwni0oD6WwIrfZxviL44DbTeMj6BPKds1BzFaPbLXsytcDRtJXurIbsknJg/YXCf2Uy91iDukxbemgXYEX9kO+cvBzxWTtvfl9VwnXCFli2Zls/MhmQenfhBH7T/j8EI0U2ruKiKEIrFXVQle+XiPQzjSK6eviAmzDXaej5AcMSRvR+yCaNX4GnGg9paduUhUSLUCPTgpJz/qDa09OyjCy+PCDgIHAvuvq7PAy84uixD8iJVbkw2/bRdsX0jKrVWk06RjGJweCXiosCHl+JPIr21rbXVD7XgUU5HLfDFW1byqLWjNtT6l3hzjooG/ZkjOXfzJCwbHD2tiyfO7xX2Xox05ARewBAuVmYFbIyphKxvO5xOIg6N/wAaQ6TJ1IXfLPXR6uuVUsDrsFrqlTaSguXRRB5/4YF/zM1hq/pp5aYGUHG7fFuqEIKpvQQFkSrIoTFUXguCYpiW/TN5VR8kBfQEhECRGOh5fkajBCxnWkDhMmNsDTR/5MghXyahaEQkAXmJEGydbQfsKMYIduLMRha3MEQ1ddkck9jsOaj/yzGw+XW+a6HdrLVLeYNYeTii5lnzyBupjMLd2UGTEYjdeXo8ou/thEq9eRae7Ta/4K1TEOcNyOC4FYccbFikwHpDMHtjDTrSh2P4cmeS43cZLDhue18+27CLPjb/zShpkxZcI+oY4QWt2afaiCXg== X-Forefront-PRVS: 01834E39B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39860400002)(39840400002)(39410400002)(39450400003)(39850400002)(189002)(199003)(6512007)(6666003)(8676002)(47776003)(5660300001)(3846002)(6116002)(50466002)(48376002)(6916009)(54906002)(33646002)(6506006)(2351001)(101416001)(6486002)(5003940100001)(50986999)(86362001)(25786008)(97736004)(66066001)(36756003)(189998001)(8666007)(110136003)(81166006)(92566002)(81156014)(105586002)(38730400001)(7736002)(42186005)(4326007)(50226002)(106356001)(68736007)(305945005)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1455; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1455; 23:AqBijTfJBbQ5CjCoMfFUNvobL2i40BZgId+UsxzX7?= =?us-ascii?Q?3IpJkw0jZ1oKSwrkxfQHczkdTCKDaIz/z3VuMZUbR44eV3bEVu9NwzhnXUwM?= =?us-ascii?Q?wvoKkiYbujRoSI9R+iu3cJvXQOiCtbtIrNO/aUFzJWGk0oBcsejlMnaT4uBe?= =?us-ascii?Q?GdBt2rxhPgtRNXaLXZ3frtrPrVN+6B45IEt7h4sjS58yVf5sp5bUlr5ybTtr?= =?us-ascii?Q?CFmAuLwZqWCEOq5elE61lemdw3TuXPRNpJvyPEO8QYpT0so1qZlmSLY+Znuv?= =?us-ascii?Q?FLNDp1u8KsTJCho/yFcqzpwII/oimQfme4wX5eHQ0Ynv2aD6ERDkfDu6hTKS?= =?us-ascii?Q?SVB46DSlYKPnxq9HO0b8H/mQsyNFiBCzKCVnqWRbEx+RrBUeujATZPA7IBRd?= =?us-ascii?Q?7yGEnp/lSlDYu94vLIdoRc2DwqFt6oP6eCpOSrxs4H+f7JZpHbFMznE1lFr2?= =?us-ascii?Q?SpDcxBPX4jBGeT0qFY3gppUH7FZGvrygNLK7wb/OXGjUOuM5blXR7/lzKDiX?= =?us-ascii?Q?fJSSqSyu7ZmmuPhdkX/0xSa+oYqLOc82H1spcHl/hSNZzGqJEB8EntA5glff?= =?us-ascii?Q?cdBnWVl5eq0WP2ZzVESN46UJYiOs/3KBiUKL6NHF98wni4uN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HhwZjrxitgzPlrHKGSa7SRnyqhveaZ5WmxpMKe1Jmo7SIUOiTLdyLXbKvZQblRL46EoCP1FuLld06hRrCyWBr3Hu77OQwj6QSUm8NS0VDUpOcvgxXaXIcRyr/EWwgqZWFg5YkT6eNxU+iK4mDbHSgP3X6pBilTkqP6aNCrA632bnL7c6n X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 14:03:23.0754 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1455 Cc: kevin.tian@intel.com, Suravee Suthikulpanit , andrew.cooper3@citrix.com, jbeulich@suse.com, sherry.hurwitz@amd.com, boris.ostrovsky@oracle.com Subject: [Xen-devel] [PATCH v3] x86/HVM: Fix teardown ordering in hvm_vcpu_destroy() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The order of destroy function calls in hvm_vcpu_destroy() should be the reverse of init calls in hvm_vcpu_initialise(). Signed-off-by: Suravee Suthikulpanit Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Kevin Tian Cc: Jan Beulich Cc: Boris Ostrovsky Reviewed-by: Andrew Cooper and queued. --- Note: I separate this out from the previously sent AMD SVM AVIC patch series since this is a standalone fix. xen/arch/x86/hvm/hvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 25dc759..d465596 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1610,13 +1610,13 @@ void hvm_vcpu_destroy(struct vcpu *v) free_compat_arg_xlat(v); - tasklet_kill(&v->arch.hvm_vcpu.assert_evtchn_irq_tasklet); - hvm_vcpu_cacheattr_destroy(v); + hvm_funcs.vcpu_destroy(v); if ( is_hvm_vcpu(v) ) vlapic_destroy(v); - hvm_funcs.vcpu_destroy(v); + tasklet_kill(&v->arch.hvm_vcpu.assert_evtchn_irq_tasklet); + hvm_vcpu_cacheattr_destroy(v); } void hvm_vcpu_down(struct vcpu *v)