From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752240Ab2BQSAD (ORCPT ); Fri, 17 Feb 2012 13:00:03 -0500 Received: from mga01.intel.com ([192.55.52.88]:5285 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751642Ab2BQSAA convert rfc822-to-8bit (ORCPT ); Fri, 17 Feb 2012 13:00:00 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="126749678" From: "Liu, Jinsong" To: Jan Beulich CC: "keir.xen@gmail.com" , "Li, Shaohua" , xen-devel , Konrad Rzeszutek Wilk , Kerneldevelopment list Subject: RE: [PATCH 1/3] PAD helper for native and paravirt platform Thread-Topic: [PATCH 1/3] PAD helper for native and paravirt platform Thread-Index: AQHM7VuZ6RKQx7+6TLaQA8tFAlSyZpZBXlMA Date: Fri, 17 Feb 2012 17:59:56 +0000 Message-ID: References: <4F3E345802000078000739B2@nat28.tlf.novell.com> In-Reply-To: <4F3E345802000078000739B2@nat28.tlf.novell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> >> +static inline int __acpi_pad_init(void) >> +{ >> + return PVOP_CALL0(int, pv_pad_ops.acpi_pad_init); +} >> + >> +static inline void __acpi_pad_exit(void) >> +{ >> + PVOP_VCALL0(pv_pad_ops.acpi_pad_exit); >> +} > > With this you, aiui, you aim at getting the calls patched. Are the > callers of this really on performance critical paths? If not, the > simpler approach of having an ops structure the fields of which get > overwritten by > Xen initialization would seem a more appropriate approach. > Yes, I agree. I code in this way just want to keep same coding style as other pv functions of paravirt.h. I update the patch w/ a simpler approach, and will post later. Of course, we need Konrad's comments. Thanks, Jinsong