Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752953AbbBWWnx (ORCPT ); Mon, 23 Feb 2015 17:43:53 -0500 Received: from mail-bn1bon0116.outbound.protection.outlook.com ([157.56.111.116]:3616 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751861AbbBWWnv (ORCPT ); Mon, 23 Feb 2015 17:43:51 -0500 Message-ID: <1424731420.4698.13.camel@freescale.com> Subject: Re: [PATCH 1/2] powerpc/kvm: Convert openpic lock to raw_spinlock From: Scott Wood To: Bogdan Purcareata CC: , , , , , , Date: Mon, 23 Feb 2015 16:43:40 -0600 In-Reply-To: <1424251955-308-2-git-send-email-bogdan.purcareata@freescale.com> References: <1424251955-308-1-git-send-email-bogdan.purcareata@freescale.com> <1424251955-308-2-git-send-email-bogdan.purcareata@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BY1PR00CA0032.namprd00.prod.outlook.com (25.160.102.42) To CY1PR0301MB0729.namprd03.prod.outlook.com (25.160.159.147) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=scottwood@freescale.com; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0729; X-Bulk-Sender: Mark as legitimate X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005003);SRVR:CY1PR0301MB0729; X-Forefront-PRVS: 0496DF6962 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(377424004)(24454002)(51704005)(189002)(105586002)(92566002)(101416001)(77156002)(50226001)(62966003)(68736005)(47776003)(36756003)(40100003)(87976001)(50466002)(2950100001)(64706001)(46102003)(122386002)(97736003)(42186005)(50986999)(110136001)(106356001)(5820100001)(76176999)(103116003)(33646002)(19580405001)(19580395003)(15975445007)(86362001)(23676002)(99106002)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0301MB0729;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0729; X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2015 22:43:47.2059 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0729 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1564 Lines: 39 On Wed, 2015-02-18 at 09:32 +0000, Bogdan Purcareata wrote: > This patch enables running intensive I/O workloads, e.g. netperf, in a guest > deployed on a RT host. It also enable guests to be SMP. > > The openpic spinlock becomes a sleeping mutex on a RT system. This no longer > guarantees that EPR is atomic with exception delivery. The guest VCPU thread > fails due to a BUG_ON(preemptible()) when running netperf. > > In order to make the kvmppc_mpic_set_epr() call safe on RT from non-atomic > context, convert the openpic lock to a raw_spinlock. A similar approach can > be seen for x86 platforms in the following commit [1]. > > Here are some comparative cyclitest measurements run inside a high priority RT > guest run on a RT host. The guest has 1 VCPU and the test has been run for 15 > minutes. The guest runs ~750 hackbench processes as background stress. > > spinlock raw_spinlock > Min latency (us) 4 4 > Avg latency (us) 15 19 > Max latency (us) 70 62 > > [1] https://lkml.org/lkml/2010/1/11/289 > > Signed-off-by: Bogdan Purcareata > Reviewed-by: Scott Wood Where did that Reviewed-by: come from? A +1 in Gerrit on an internal tree does not translate into an upstream Reviewed-by. -Scott -- 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/