PREEMPT_RT kernel for v0.8


Keppens, Kris
 

What should be the new kernel baseline to apply the preempt_rt patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.


Wang, Hongbo
 

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

 

Let our QA team check it first.

 

 

Best regards.

Hongbo

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@...

 

From: acrn-users@... [mailto:acrn-users@...] On Behalf Of kris.keppens@...
Sent: Tuesday, April 16, 2019 12:12 AM
To: acrn-users@...
Subject: [acrn-users] PREEMPT_RT kernel for v0.8

 

What should be the new kernel baseline to apply the preempt_rt patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.


Keppens, Kris
 

FYI: this is where it hangs:

 

cpu1 online=1

cpu2 online=1

cpu3 online=1

SW_LOAD: get kernel path /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty

SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet console=tty0 console=hvc0   console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable x2apic_phys

VHM api version 1.0

open hugetlbfs file /run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643

open hugetlbfs file /run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643

level 0 free/need pages:0/0 page size:0x200000

level 1 free/need pages:0/2 page size:0x40000000

to reserve more free pages:

to reserve pages (+orig 0): echo 2 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

now enough free pages are reserved!

 

try to setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

total_size 0x180000000

 

mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000

mmap 0x80000000@0x7f75c0000000

touch 2 pages with pagesz 0x40000000

 

really setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

polling 33...

Listening 33...

tpm: init_vtpm2:Invalid socket path!

                                    SW_LOAD: bootargs copied to guest 0x7fffe000

                                                                                SW_LOAD: kernel /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty size 14300720 copied to guest 0x1000000

                                                                                      SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400

                  SW_LOAD: build zeropage for bootargs addr: 0x7fffe000

                                                                       SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0

SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000,  type 0x1

SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000,  type 0x2

SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000,  type 0x1

SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000,  type 0x2

SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000,  type 0x2

SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400

 

 

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Wang, Hongbo
Sent: Tuesday, April 16, 2019 5:42 AM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

 

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

 

Let our QA team check it first.

 

 

Best regards.

Hongbo

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@...

 

From: acrn-users@... [mailto:acrn-users@...] On Behalf Of kris.keppens@...
Sent: Tuesday, April 16, 2019 12:12 AM
To: acrn-users@...
Subject: [acrn-users] PREEMPT_RT kernel for v0.8

 

What should be the new kernel baseline to apply the preempt_rt patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Yin, Fengwei <fengwei.yin@...>
 

On 4/16/2019 6:25 PM, Keppens, Kris wrote:
FYI: this is where it hangs:
This log means the UOS kernel hang at very early kernel boot stage.
Do you have HV console work or not?

Regards
Yin, Fengwei

cpu1 online=1
cpu2 online=1
cpu3 online=1
SW_LOAD: get kernel path /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty
SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet console=tty0 console=hvc0   console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable x2apic_phys
VHM api version 1.0
open hugetlbfs file /run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643
open hugetlbfs file /run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643
level 0 free/need pages:0/0 page size:0x200000
level 1 free/need pages:0/2 page size:0x40000000
to reserve more free pages:
to reserve pages (+orig 0): echo 2 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages
now enough free pages are reserved!
try to setup hugepage with:
       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0
       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0
total_size 0x180000000
mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000
mmap 0x80000000@0x7f75c0000000
touch 2 pages with pagesz 0x40000000
really setup hugepage with:
       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0
       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0
polling 33...
Listening 33...
tpm: init_vtpm2:Invalid socket path!
                                    SW_LOAD: bootargs copied to guest 0x7fffe000
                                                                                SW_LOAD: kernel /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty size 14300720 copied to guest 0x1000000
                                                                                      SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400
                  SW_LOAD: build zeropage for bootargs addr: 0x7fffe000
SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0
SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000, type 0x1
SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000, type 0x2
SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000, type 0x1
SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000, type 0x2
SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000, type 0x2
SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400
*From:*acrn-users@... <acrn-users@...> *On Behalf Of *Wang, Hongbo
*Sent:* Tuesday, April 16, 2019 5:42 AM
*To:* acrn-users@...
*Subject:* Re: [acrn-users] PREEMPT_RT kernel for v0.8
Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.
It’s wired that you can’t boot with tutorial’s kernel version.
Let our QA team check it first.
*//*
*/Best regards./*
*/Hongbo/*
Tel: +86-21-6116 7445
MP: +86-1364 1793 689
Mail: hongbo.wang@... <mailto:hongbo.wang@...>
*From:*acrn-users@... <mailto:acrn-users@...> [mailto:acrn-users@...] *On Behalf Of *kris.keppens@... <mailto:kris.keppens@...>
*Sent:* Tuesday, April 16, 2019 12:12 AM
*To:* acrn-users@... <mailto:acrn-users@...>
*Subject:* [acrn-users] PREEMPT_RT kernel for v0.8
What should be the new kernel baseline to apply the preempt_rt patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.
Thanks
Kris.
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Keppens, Kris
 

Yes, HV console, SOS and regular UOS work fine.
It is the preempt-rt kernel that gives me headaches.

Kris

-----Original Message-----
From: acrn-users@... <acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Tuesday, April 16, 2019 3:23 PM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

On 4/16/2019 6:25 PM, Keppens, Kris wrote:
FYI: this is where it hangs:
This log means the UOS kernel hang at very early kernel boot stage.
Do you have HV console work or not?

Regards
Yin, Fengwei


cpu1 online=1

cpu2 online=1

cpu3 online=1

SW_LOAD: get kernel path
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5
dc0ac-dirty

SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet
console=tty0 console=hvc0   console=ttyS0 no_timer_check
ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable
x2apic_phys

VHM api version 1.0

open hugetlbfs file
/run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643

open hugetlbfs file
/run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643

level 0 free/need pages:0/0 page size:0x200000

level 1 free/need pages:0/2 page size:0x40000000

to reserve more free pages:

to reserve pages (+orig 0): echo 2 >
/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

now enough free pages are reserved!

try to setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

total_size 0x180000000

mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000

mmap 0x80000000@0x7f75c0000000

touch 2 pages with pagesz 0x40000000

really setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

polling 33...

Listening 33...

tpm: init_vtpm2:Invalid socket path!

                                    SW_LOAD: bootargs copied to guest
0x7fffe000

                                                                                
SW_LOAD: kernel
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5
dc0ac-dirty size 14300720 copied to guest 0x1000000

                                                                                     
SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400

                  SW_LOAD: build zeropage for bootargs addr:
0x7fffe000


SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0

SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000,
type 0x1

SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000,
type 0x2

SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000,
type 0x1

SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000,
type 0x2

SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000,
type 0x2

SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400

*From:*acrn-users@...
<acrn-users@...> *On Behalf Of *Wang, Hongbo
*Sent:* Tuesday, April 16, 2019 5:42 AM
*To:* acrn-users@...
*Subject:* Re: [acrn-users] PREEMPT_RT kernel for v0.8

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

Let our QA team check it first.

*//*

*/Best regards./*

*/Hongbo/*

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@... <mailto:hongbo.wang@...>

*From:*acrn-users@...
<mailto:acrn-users@...>
[mailto:acrn-users@...] *On Behalf Of
*kris.keppens@... <mailto:kris.keppens@...>
*Sent:* Tuesday, April 16, 2019 12:12 AM
*To:* acrn-users@...
<mailto:acrn-users@...>
*Subject:* [acrn-users] PREEMPT_RT kernel for v0.8

What should be the new kernel baseline to apply the preempt_rt patches
on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Yin, Fengwei <fengwei.yin@...>
 

Hi Kris,
What's the dm options you are using to run your preempt-rt kernel?
What if you add "earlyprintk=ttyS0" to your kernel command and see
what we could get from early console?

Regards
Yin, Fengwei

On 4/16/2019 9:25 PM, Keppens, Kris wrote:
Yes, HV console, SOS and regular UOS work fine.
It is the preempt-rt kernel that gives me headaches.
Kris
-----Original Message-----
From: acrn-users@... <acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Tuesday, April 16, 2019 3:23 PM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8
On 4/16/2019 6:25 PM, Keppens, Kris wrote:
FYI: this is where it hangs:
This log means the UOS kernel hang at very early kernel boot stage.
Do you have HV console work or not?
Regards
Yin, Fengwei


cpu1 online=1

cpu2 online=1

cpu3 online=1

SW_LOAD: get kernel path
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5
dc0ac-dirty

SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet
console=tty0 console=hvc0   console=ttyS0 no_timer_check
ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable
x2apic_phys

VHM api version 1.0

open hugetlbfs file
/run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643

open hugetlbfs file
/run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643

level 0 free/need pages:0/0 page size:0x200000

level 1 free/need pages:0/2 page size:0x40000000

to reserve more free pages:

to reserve pages (+orig 0): echo 2 >
/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

now enough free pages are reserved!

try to setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

total_size 0x180000000

mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000

mmap 0x80000000@0x7f75c0000000

touch 2 pages with pagesz 0x40000000

really setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

polling 33...

Listening 33...

tpm: init_vtpm2:Invalid socket path!

                                    SW_LOAD: bootargs copied to guest
0x7fffe000

SW_LOAD: kernel
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5
dc0ac-dirty size 14300720 copied to guest 0x1000000

SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400

                  SW_LOAD: build zeropage for bootargs addr:
0x7fffe000

SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0

SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000,
type 0x1

SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000,
type 0x2

SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000,
type 0x1

SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000,
type 0x2

SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000,
type 0x2

SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400

*From:*acrn-users@...
<acrn-users@...> *On Behalf Of *Wang, Hongbo
*Sent:* Tuesday, April 16, 2019 5:42 AM
*To:* acrn-users@...
*Subject:* Re: [acrn-users] PREEMPT_RT kernel for v0.8

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

Let our QA team check it first.

*//*

*/Best regards./*

*/Hongbo/*

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@... <mailto:hongbo.wang@...>

*From:*acrn-users@...
<mailto:acrn-users@...>
[mailto:acrn-users@...] *On Behalf Of
*kris.keppens@... <mailto:kris.keppens@...>
*Sent:* Tuesday, April 16, 2019 12:12 AM
*To:* acrn-users@...
<mailto:acrn-users@...>
*Subject:* [acrn-users] PREEMPT_RT kernel for v0.8

What should be the new kernel baseline to apply the preempt_rt patches
on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Keppens, Kris
 

I have found something:

After adding the options '-s 0:0,hostbridge -s 1:0,lpc -l com1,stdio'
And changing -s 5,virtio-console,@stdio:stdio_port to: -s 5,virtio-console,@pty:pty_port

... then the kernel boots, but the console becomes unresponsive after a while.
You can still ssh into the VM though, so the kernel still works, only the console hangs.

This is the current acrn-dm line:

acrn-dm -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio\
--lapic_pt \
--rtvm \
--virtio_poll 1000000 \
-s 5,virtio-console,@pty:pty_port \
-s 3,virtio-blk,/home/kris/clearlinux_rtvm.img \
-s 4,virtio-net,tap0 \
--mac_seed $mac_seed \
-k /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty \
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
consoleblank=0 tsc=reliable x2apic_phys earlyprintk=ttyS0" $vm_name
}


Old one:

acrn-dm -m $mem_size -c $2 \
--lapic_pt \
--rtvm \
--virtio_poll 1000000 \
-s 5,virtio-console,@stdio:stdio_port \
-s 3,virtio-blk,/home/kris/clearlinux_rtvm.img \
-s 4,virtio-net,tap0 \
--mac_seed $mac_seed \
-k /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty \
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
consoleblank=0 tsc=reliable x2apic_phys earlyprintk=ttyS0" $vm_name
}

-----Original Message-----
From: acrn-users@... <acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Wednesday, April 17, 2019 9:37 AM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

Hi Kris,
What's the dm options you are using to run your preempt-rt kernel?
What if you add "earlyprintk=ttyS0" to your kernel command and see what we could get from early console?

Regards
Yin, Fengwei

On 4/16/2019 9:25 PM, Keppens, Kris wrote:
Yes, HV console, SOS and regular UOS work fine.
It is the preempt-rt kernel that gives me headaches.

Kris



-----Original Message-----
From: acrn-users@...
<acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Tuesday, April 16, 2019 3:23 PM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

On 4/16/2019 6:25 PM, Keppens, Kris wrote:
FYI: this is where it hangs:
This log means the UOS kernel hang at very early kernel boot stage.
Do you have HV console work or not?

Regards
Yin, Fengwei


cpu1 online=1

cpu2 online=1

cpu3 online=1

SW_LOAD: get kernel path
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e
5
dc0ac-dirty

SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet
console=tty0 console=hvc0   console=ttyS0 no_timer_check
ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable
x2apic_phys

VHM api version 1.0

open hugetlbfs file
/run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643

open hugetlbfs file
/run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643

level 0 free/need pages:0/0 page size:0x200000

level 1 free/need pages:0/2 page size:0x40000000

to reserve more free pages:

to reserve pages (+orig 0): echo 2 >
/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

now enough free pages are reserved!

try to setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

total_size 0x180000000

mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000

mmap 0x80000000@0x7f75c0000000

touch 2 pages with pagesz 0x40000000

really setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

polling 33...

Listening 33...

tpm: init_vtpm2:Invalid socket path!

                                    SW_LOAD: bootargs copied to
guest
0x7fffe000


SW_LOAD: kernel
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e
5 dc0ac-dirty size 14300720 copied to guest 0x1000000


SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400

                  SW_LOAD: build zeropage for bootargs addr:
0x7fffe000


SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0

SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000,
type 0x1

SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000,
type 0x2

SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000,
type 0x1

SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000,
type 0x2

SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000,
type 0x2

SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400

*From:*acrn-users@...
<acrn-users@...> *On Behalf Of *Wang, Hongbo
*Sent:* Tuesday, April 16, 2019 5:42 AM
*To:* acrn-users@...
*Subject:* Re: [acrn-users] PREEMPT_RT kernel for v0.8

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

Let our QA team check it first.

*//*

*/Best regards./*

*/Hongbo/*

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@... <mailto:hongbo.wang@...>

*From:*acrn-users@...
<mailto:acrn-users@...>
[mailto:acrn-users@...] *On Behalf Of
*kris.keppens@... <mailto:kris.keppens@...>
*Sent:* Tuesday, April 16, 2019 12:12 AM
*To:* acrn-users@...
<mailto:acrn-users@...>
*Subject:* [acrn-users] PREEMPT_RT kernel for v0.8

What should be the new kernel baseline to apply the preempt_rt
patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.





Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Keppens, Kris
 

It looks like without the options "-s 0:0,hostbridge -s 1:0,lpc -l com1,stdio", UOS kernel does not boot anymore.
These options are not present in the launch_hard_rt_vm.sh script.
Why do we need these options? Can't we use virtio-console instead?

Thanks
Kris

-----Original Message-----
From: acrn-users@... <acrn-users@...> On Behalf Of Keppens, Kris
Sent: Wednesday, April 17, 2019 12:23 PM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

I have found something:

After adding the options '-s 0:0,hostbridge -s 1:0,lpc -l com1,stdio'
And changing -s 5,virtio-console,@stdio:stdio_port to: -s 5,virtio-console,@pty:pty_port

... then the kernel boots, but the console becomes unresponsive after a while.
You can still ssh into the VM though, so the kernel still works, only the console hangs.

This is the current acrn-dm line:

acrn-dm -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio\
--lapic_pt \
--rtvm \
--virtio_poll 1000000 \
-s 5,virtio-console,@pty:pty_port \
-s 3,virtio-blk,/home/kris/clearlinux_rtvm.img \
-s 4,virtio-net,tap0 \
--mac_seed $mac_seed \
-k /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty \
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
consoleblank=0 tsc=reliable x2apic_phys earlyprintk=ttyS0" $vm_name }


Old one:

acrn-dm -m $mem_size -c $2 \
--lapic_pt \
--rtvm \
--virtio_poll 1000000 \
-s 5,virtio-console,@stdio:stdio_port \
-s 3,virtio-blk,/home/kris/clearlinux_rtvm.img \
-s 4,virtio-net,tap0 \
--mac_seed $mac_seed \
-k /home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e5dc0ac-dirty \
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=tty0 console=hvc0 \
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
consoleblank=0 tsc=reliable x2apic_phys earlyprintk=ttyS0" $vm_name }








-----Original Message-----
From: acrn-users@... <acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Wednesday, April 17, 2019 9:37 AM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

Hi Kris,
What's the dm options you are using to run your preempt-rt kernel?
What if you add "earlyprintk=ttyS0" to your kernel command and see what we could get from early console?

Regards
Yin, Fengwei

On 4/16/2019 9:25 PM, Keppens, Kris wrote:
Yes, HV console, SOS and regular UOS work fine.
It is the preempt-rt kernel that gives me headaches.

Kris



-----Original Message-----
From: acrn-users@...
<acrn-users@...> On Behalf Of Yin, Fengwei
Sent: Tuesday, April 16, 2019 3:23 PM
To: acrn-users@...
Subject: Re: [acrn-users] PREEMPT_RT kernel for v0.8

On 4/16/2019 6:25 PM, Keppens, Kris wrote:
FYI: this is where it hangs:
This log means the UOS kernel hang at very early kernel boot stage.
Do you have HV console work or not?

Regards
Yin, Fengwei


cpu1 online=1

cpu2 online=1

cpu3 online=1

SW_LOAD: get kernel path
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e
5
dc0ac-dirty

SW_LOAD: get bootargs root=/dev/vda2 rw rootwait maxcpus=1 nohpet
console=tty0 console=hvc0   console=ttyS0 no_timer_check
ignore_loglevel log_buf_len=16M   consoleblank=0 tsc=reliable
x2apic_phys

VHM api version 1.0

open hugetlbfs file
/run/hugepage/acrn/huge_lv1/D279543825D611E8864ECB7A18B34643

open hugetlbfs file
/run/hugepage/acrn/huge_lv2/D279543825D611E8864ECB7A18B34643

level 0 free/need pages:0/0 page size:0x200000

level 1 free/need pages:0/2 page size:0x40000000

to reserve more free pages:

to reserve pages (+orig 0): echo 2 >
/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages

now enough free pages are reserved!

try to setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

total_size 0x180000000

mmap ptr 0x0x7f75bda6b000 -> baseaddr 0x0x7f75c0000000

mmap 0x80000000@0x7f75c0000000

touch 2 pages with pagesz 0x40000000

really setup hugepage with:

       level 0 - lowmem 0x0, biosmem 0x0, highmem 0x0

       level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x0

polling 33...

Listening 33...

tpm: init_vtpm2:Invalid socket path!

                                    SW_LOAD: bootargs copied to
guest
0x7fffe000


SW_LOAD: kernel
/home/kris/preempt-rt/binaries-v0.7/boot/vmlinuz-4.19.8-rt12-quilt-2e
5 dc0ac-dirty size 14300720 copied to guest 0x1000000


SW_LOAD: found setup sig @ 0x00004258, setup_size is 0x00004400

                  SW_LOAD: build zeropage for bootargs addr:
0x7fffe000


SW_LOAD: build e820 5 entries to addr: 0x7f763ffff2d0

SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000,
type 0x1

SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000,
type 0x2

SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000,
type 0x1

SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000,
type 0x2

SW_LOAD: entry[4]: addr 0x0000000100000000, size 0x0000000040000000,
type 0x2

SW_LOAD: zeropage prepared @ 0x7ffff000, kernel_entry_addr=0x1004400

*From:*acrn-users@...
<acrn-users@...> *On Behalf Of *Wang, Hongbo
*Sent:* Tuesday, April 16, 2019 5:42 AM
*To:* acrn-users@...
*Subject:* Re: [acrn-users] PREEMPT_RT kernel for v0.8

Our v0.8 release is using Clear Linux’s kernel, which is 4.19.xx.

It’s wired that you can’t boot with tutorial’s kernel version.

Let our QA team check it first.

*//*

*/Best regards./*

*/Hongbo/*

Tel: +86-21-6116 7445

MP: +86-1364 1793 689

Mail: hongbo.wang@... <mailto:hongbo.wang@...>

*From:*acrn-users@...
<mailto:acrn-users@...>
[mailto:acrn-users@...] *On Behalf Of
*kris.keppens@... <mailto:kris.keppens@...>
*Sent:* Tuesday, April 16, 2019 12:12 AM
*To:* acrn-users@...
<mailto:acrn-users@...>
*Subject:* [acrn-users] PREEMPT_RT kernel for v0.8

What should be the new kernel baseline to apply the preempt_rt
patches on for acrn v0.8 ?
The kernel version used in the tutorial doesn't boot anymore on v0.8.

Thanks
Kris.

Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.





Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.



Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.