1.  about  Invalid PCI MMCONFIG write, device 02:00:0, reg:110, size:4"
I don't know why show this when use original  .c configuration.
After I added this, it  doesn't  show error.  I don't know why.
 {
 .phys_start = 0xb0000000,//mmconfig
 .virt_start = 0xb0000000,
 .size = 0x10000000,
 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
},

2.  about qemu version
The qemu on  ubuntu 18.04 default is 2.11.1 , it run failed.    The network 
card e1000e  will go down after ifup  eth1.
I change to qemu-6.0.0 , it sucess. Maybe qemu-4.2.1 is also ok. 


在2021年6月1日星期二 UTC+8 上午1:49:08<[email protected]> 写道:

> On 31.05.21 07:00, along li wrote:
> > When I run  qemu demo. try to partition pci device into inmate.
> > I failed.
> > 
> > After some lone time trying , I sucess.
> > The PCI device  e1000e  is partitioned into inmate and ping sucess in
> > inmate.
> > what the defference is:
> > 1. I  add this into root.c(qemu-x86.c) and  qemu-linux-demo.c
> > {
> > .phys_start = 0xb0000000,//mmconfig
> > .virt_start = 0xb0000000,
> > .size = 0x10000000,
> > .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
> > },
>
> This is wrong, "jailhouse config check" should also complain. You will
> eventually loose interrupts or get even worse behaviour.
>
> > or It will show   "Invalid PCI MMCONFIG write, device 02:00:0, reg:110,
> > size:4"
> > 
>
> You need to address the root cause: The guest tries to access a PCI
> config registers, likely related to PCI capability that has no write
> permission in your config yet. See also the good-old Jailhouse tutorial.
>
> > 
> > 2. use qemu-6.0 to run the qemu demo.
> > When use qemu -2..11.1 to run the demo the network  card cann't run 
> sucess.
> > It  turns off  after I turn  on it use  ifconfig  up  command.
> > 
> > well, may it help someone.  whe to try the qemu demo for pci partition.
> > 
>
> I'm on 4.2.1 to 6.0 here, those seem to have no issue with changing
> resource layout. Possibly, we have to lift the lower version boundary by
> now, though.
>
> Can you be more specific in regards to what didn't work? Did you try to
> compare if /proc/iomem in the root cell is comparable across those qemu
> versions?
>
> Jan
>
> -- 
> Siemens AG, T RDA IOT
> Corporate Competence Center Embedded Linux
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/f572fb5e-9d0a-4b8d-abc5-7aab1590aa58n%40googlegroups.com.

Reply via email to