From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F803C4338F for ; Tue, 10 Aug 2021 18:13:41 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D555060462 for ; Tue, 10 Aug 2021 18:13:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D555060462 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:54076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDWFv-0007Od-HJ for qemu-devel@archiver.kernel.org; Tue, 10 Aug 2021 14:13:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDWFD-00068d-73 for qemu-devel@nongnu.org; Tue, 10 Aug 2021 14:12:55 -0400 Received: from mga07.intel.com ([134.134.136.100]:35440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDWFA-0001fq-AF for qemu-devel@nongnu.org; Tue, 10 Aug 2021 14:12:54 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10072"; a="278709715" X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="278709715" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 11:12:44 -0700 X-IronPort-AV: E=Sophos;i="5.84,310,1620716400"; d="scan'208";a="675138230" Received: from luisdsan-mobl.amr.corp.intel.com (HELO intel.com) ([10.252.128.20]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 11:12:43 -0700 Date: Tue, 10 Aug 2021 11:12:40 -0700 From: Ben Widawsky To: Samarth Saxena Subject: Re: [CXL volatile MEM] - Qemu command to turn on HMAT and NUMA fails with assertion Message-ID: <20210810181240.tkhfcd4erlcqteov@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=134.134.136.100; envelope-from=ben.widawsky@intel.com; helo=mga07.intel.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Dr. David Alan Gilbert" , "qemu-devel@nongnu.org" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Thanks Dave. Samarth, Easiest is to just use our run_qemu and figure out the diffs (--cmdline will print the qemu commandline): https://github.com/pmem/run_qemu If you're not able to figure it out after that, please let me know. On 21-08-10 17:38:16, Samarth Saxena wrote: > Thanks Dave, > > The Qemu version is qemu-6.0.50. > > I am trying to capture the stack and will place it ASAP. > > Regards, > Samarth > > > -----Original Message----- > From: Dr. David Alan Gilbert > Sent: Tuesday, August 10, 2021 4:58 PM > To: Samarth Saxena ; ben.widawsky@intel.com > Cc: qemu-devel@nongnu.org > Subject: Re: [CXL volatile MEM] - Qemu command to turn on HMAT and NUMA fails with assertion > > EXTERNAL MAIL > > > * Samarth Saxena (samarths@cadence.com) wrote: > > Hi All, > > > > I am trying the following command to run Qemu with Kernel 5.14. > > cc'ing in Ben who I think owns the CXL stuff. > > > qemu-system-x86_64 -M q35,accel=kvm,nvdimm=on,cxl=on,hmat=on -m > > 8448M,slots=2,maxmem=16G -smp 8,sockets=2,cores=2,threads=2 -hda > > /lan/dscratch/singhabh/shradha/ubuntu-20.10-64_with_orig_driver_backup > > .qcow2 -enable-kvm -usbdevice tablet -L $VB_ROOT/etc/vm/common/ > > -object memory-backend-ram,id=cxl-ram,share=on,size=256M -device > > "pxb-cxl,id=cxl.0,bus=pcie.0,bus_nr=52,uid=0,len-window-base=1,window- > > base[0]=0x4c0000000,memdev[0]=cxl-ram" -device > > cxl-rp,id=rp0,bus=cxl.0,addr=0.0,chassis=0,slot=0 -device > > cxl-type3,bus=rp0,memdev=cxl-ram,id=cxl-vmem0,size=256M -numa > > node,nodeid=0,memdev=cxl-ram -object > > memory-backend-ram,id=other-ram,size=8G,prealloc=n,share=off -numa > > node,nodeid=1,memdev=other-ram,initiator=0 -numa > > cpu,node-id=0,socket-id=0 -numa cpu,node-id=0,socket-id=1 > > You probably need to state which qemu tree and version you're using here. > > > I get the following crash before the machine starts to boot. > > > > qemu-system-x86_64: ../softmmu/memory.c:2443: memory_region_add_subregion_common: Assertion `!subregion->container' failed. > > It's probably best to check with Ben, but you'll want a backtrace and figure out which subregion and region you're dealing with. > > Dave > > > > > Please help me find what's wrong here. > > > > Regards, > > [CadenceLogoRed185Regcopy1583174817new51584636989.png] > ence.com/en_US/home.html> > > Samarth Saxena > > Sr Principal Software Engineer > > T: +911204308300 > > [UIcorrectsize1583179003.png] > > [16066EmailSignatureFortune100Best2021White92x1271617625037.png] > ://www.cadence.com/en_US/home/company/careers.html> > > > > > > > > > -- > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK >