From owner-svn-src-head@freebsd.org Wed Apr 19 03:50:07 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F738D44A3B; Wed, 19 Apr 2017 03:50:07 +0000 (UTC) (envelope-from decui@microsoft.com) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01on0110.outbound.protection.outlook.com [104.47.126.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A98BBD4C; Wed, 19 Apr 2017 03:50:06 +0000 (UTC) (envelope-from decui@microsoft.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fmf04cXQ62OzGpX2CR9B5515Q17eEdjszQV/C2Dh058=; b=LKF6xtSpjyESPFSLueDoV3sclTq+V1J03ZUxRSD/nNOqMv3hT4jqH7KB4e2T3BXVyF9lQ0tu4jkufFcxuyJyD7ceiRxYVn4k4UpeSqMWvIrk0Hr9gWwc12cJ7aIEhT3pdIDh3Pi5EsQNDzkpRdIAU3AGAl+UBp2tw92YMRfZmHY= Received: from HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM (10.170.151.145) by HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM (10.170.151.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.1; Wed, 19 Apr 2017 03:49:51 +0000 Received: from HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM ([10.170.151.145]) by HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM ([10.170.151.145]) with mapi id 15.01.1061.003; Wed, 19 Apr 2017 03:49:51 +0000 From: Dexuan Cui To: Konstantin Belousov CC: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Sepherosa Ziehau , Hongjiang Zhang Subject: RE: svn commit: r316767 - head/sys/amd64/amd64 Thread-Topic: svn commit: r316767 - head/sys/amd64/amd64 Thread-Index: AQHStG2iSg+v8T4ZWE2jvrgFLfQZk6HLFDPwgAAXJgCAAAC2YA== Date: Wed, 19 Apr 2017 03:49:50 +0000 Message-ID: References: <201704131549.v3DFnt9I004050@repo.freebsd.org> <20170418134556.GY1788@kib.kiev.ua> In-Reply-To: <20170418134556.GY1788@kib.kiev.ua> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [167.220.255.48] x-microsoft-exchange-diagnostics: 1; HK2P15301MB0003; 7:O6GznFTfn2ObwluVmF/QfDzFjUisOya3MZZ/gSYLTf+78wyn9Lw+I+8rRbqCJQtog5BMqHT1TIZaQfesZlekKno7NVEktICIIfMMnKYoDo79vNQ5TaFng+26TnXZKGluDOtFoFmrSKEsneqmnNostv8DWX8xgxJ5PEvB6LAxtBOf/dyYpbZ5nI203avmesaFygfEQtd5ul+Xx0yz9WHeDCnY917l9KpxOkp90r8WNmTUXoLcl/EbNX/SL8SP5xK7T83bpxCN8I8VOZVKnTPyfQ/YzzGcyhQcfrLB6Gdm37HN9iZu6O8DAzc8Nc5brF5qU1xnWpOCFQ996baKqtBE/8uM6O+85/asrgO6SIMA+Xw= x-ms-office365-filtering-correlation-id: 9f10021f-9f2d-44b1-06f7-08d486d72247 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:HK2P15301MB0003; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:HK2P15301MB0003; BCL:0; PCL:0; RULEID:; SRVR:HK2P15301MB0003; x-forefront-prvs: 028256169F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39450400003)(39860400002)(39850400002)(39410400002)(39400400002)(8990500004)(305945005)(3280700002)(74316002)(6436002)(2906002)(7696004)(86362001)(76176999)(8676002)(7736002)(81166006)(54356999)(6506006)(50986999)(86612001)(3846002)(53936002)(102836003)(6116002)(77096006)(3660700001)(1411001)(110136004)(107886003)(38730400002)(229853002)(39060400002)(2900100001)(66066001)(6246003)(122556002)(33656002)(10090500001)(189998001)(55016002)(54906002)(5005710100001)(10290500002)(4326008)(9686003)(6916009)(25786009)(2950100002)(8936002)(5660300001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2P15301MB0003; H:HK2P15301MB0003.APCP153.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2017 03:49:50.9917 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2P15301MB0003 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 03:50:07 -0000 > From: Konstantin Belousov > > It looks memory allocated by bus_dmamem_alloc() and malloc() > > is not executable now. > > > > What else can we use? > > I guess we can only use contigmalloc() or kmem_malloc() to > > get a page that can be executable and use vtophys() to get its > > physical address? > Yes, the kmem_malloc() is considered to be a suitable substitution for > regular malloc(9) if the executable mapping is needed. See r317072 > for a similar fix for the same issue. Thanks, kib! We have fixed Hyper-V drivers with kmem_malloc(). Thanks, -- Dexuan