Re: [Qemu-devel] [PATCH] pc-dimm: fix crash when invalid slot number is used

2019-07-23 Thread Pankaj Gupta
> QEMU will crash with: > Segmentation fault (core dumped) > when negative slot number is used, ex: > qemu-system-x86_64 -m 1G,maxmem=20G,slots=256 \ > -object memory-backend-ram,id=mem1,size=1G \ > -device pc-dimm,id=dimm1,memdev=mem1,slot=-2 > > fix it by checking that slot num

Re: [Qemu-devel] [PATCH] pc-dimm: fix crash when invalid slot number is used

2019-07-23 Thread Li Qiang
Igor Mammedov 于2019年7月24日周三 上午12:09写道: > QEMU will crash with: > Segmentation fault (core dumped) > when negative slot number is used, ex: > qemu-system-x86_64 -m 1G,maxmem=20G,slots=256 \ > -object memory-backend-ram,id=mem1,size=1G \ > -device pc-dimm,id=dimm1,memdev=mem1,slot=-

Re: [Qemu-devel] [PATCH] pc-dimm: fix crash when invalid slot number is used

2019-07-23 Thread David Gibson
On Tue, Jul 23, 2019 at 12:08:59PM -0400, Igor Mammedov wrote: > QEMU will crash with: > Segmentation fault (core dumped) > when negative slot number is used, ex: > qemu-system-x86_64 -m 1G,maxmem=20G,slots=256 \ > -object memory-backend-ram,id=mem1,size=1G \ > -device pc-dimm,id=di

[Qemu-devel] [PATCH] pc-dimm: fix crash when invalid slot number is used

2019-07-23 Thread Igor Mammedov
QEMU will crash with: Segmentation fault (core dumped) when negative slot number is used, ex: qemu-system-x86_64 -m 1G,maxmem=20G,slots=256 \ -object memory-backend-ram,id=mem1,size=1G \ -device pc-dimm,id=dimm1,memdev=mem1,slot=-2 fix it by checking that slot number is within vali