qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Samarth Saxena <samarths@cadence.com>, ben.widawsky@intel.com
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [CXL volatile MEM] - Qemu command to turn on HMAT and NUMA fails with assertion
Date: Tue, 10 Aug 2021 12:28:15 +0100	[thread overview]
Message-ID: <YRJizxKbMxpwhSrL@work-vm> (raw)
In-Reply-To: <DM6PR07MB8143073FA28EA05BAF7D8B24DDF69@DM6PR07MB8143.namprd07.prod.outlook.com>

* 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]<https://www.cadence.com/en_US/home.html>
> Samarth Saxena
> Sr Principal Software Engineer
> T: +911204308300
> [UIcorrectsize1583179003.png]<https://www.cadence.com/en_US/home.html>
> [16066EmailSignatureFortune100Best2021White92x1271617625037.png]<https://www.cadence.com/en_US/home/company/careers.html>
> 
> 
> 
> 
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



  reply	other threads:[~2021-08-10 11:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-09 16:38 [CXL volatile MEM] - Qemu command to turn on HMAT and NUMA fails with assertion Samarth Saxena
2021-08-10 11:28 ` Dr. David Alan Gilbert [this message]
2021-08-10 17:38   ` Samarth Saxena
2021-08-10 18:12     ` Ben Widawsky
2021-08-15 10:14       ` Samarth Saxena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRJizxKbMxpwhSrL@work-vm \
    --to=dgilbert@redhat.com \
    --cc=ben.widawsky@intel.com \
    --cc=qemu-devel@nongnu.org \
    --cc=samarths@cadence.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).