Date   

Re: Run ACRN Service VM is getting struck at WARNING: no console will be available to OS

Liu, Fuzhong
 

Hi Shrikant

Please help to raise one git issue  with following link:

https://github.com/projectacrn/acrn-hypervisor/issues/new?assignees=&labels=status%3A+new&template=bug_report.md&title=

And help to upload following info:

codebase

board.xml

scenario.xml

grub menu setting

 

Thanks

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of HALLUR, SHRIKANT
Sent: Friday, April 22, 2022 1:20 AM
To: acrn-users@...
Subject: [acrn-users] Run ACRN Service VM is getting struck at WARNING: no console will be available to OS

 

Hi Team,

 

I am trying to launch ACRN Service OS on Dell Laptop (Target Machine). The configuration as below,

Processor: 11th Gen Intel Core i7 Tiger Lake

Graphics: Mesa Intel Xe Graphics (TGL GT2)

 

Please let me know above configuration supported for ACRN launch?

 

I followed, https://projectacrn.github.io/latest/getting-started/getting-started.html and ”7. Run ACRN and the Service VM” (launching Service OS) is getting struck at “WARNING: no console will be available to OS”.

 

Please help resolving the issue. I tried with YOCTO ACRN also and facing the same issue.

 

Regards,

Shrikant U H

 


Re: Virtual communication in ACRN

Yu Wang
 

On Wed, Apr 20, 2022 at 04:09:08AM -0700, florian.r.e.arnold@... wrote:
Hi Yu,
Thanks for the quick response. Your answers helped a lot.

Just one more thing:
The virtual switch (the standard L2 switch or the OVS) runs within the service VM, which is not a real-time VM.
Do you want to get a realtime network mediator for realtime workloads in
RTVM? I don't think there has such mediator can saitisfy the RT
requirement so far... The hv-land mediator may be feasible as its code
path is determined but SOS's user-land mediator is too complex...

So my question is:
Could other applications within the SOS user space or kernel space interfere with the switch so that I might get non-deterministic latencies for the communication between VMs and external components?
If yes, are there any alternative approaches to ensure deterministic low-latency communication within ACRN?
You can investigate the QoS of Linux network for this. Likes cgroups or
others to isolate the bandwidth and prioritization.


Best
Florian





Run ACRN Service VM is getting struck at WARNING: no console will be available to OS

HALLUR, SHRIKANT
 

Hi Team,

 

I am trying to launch ACRN Service OS on Dell Laptop (Target Machine). The configuration as below,

Processor: 11th Gen Intel Core i7 Tiger Lake

Graphics: Mesa Intel Xe Graphics (TGL GT2)

 

Please let me know above configuration supported for ACRN launch?

 

I followed, https://projectacrn.github.io/latest/getting-started/getting-started.html and ”7. Run ACRN and the Service VM” (launching Service OS) is getting struck at “WARNING: no console will be available to OS”.

 

Please help resolving the issue. I tried with YOCTO ACRN also and facing the same issue.

 

Regards,

Shrikant U H

 


Re: Virtual communication in ACRN

florian.r.e.arnold@...
 

Hi Yu,
Thanks for the quick response. Your answers helped a lot. 

Just one more thing: 
The virtual switch (the standard L2 switch or the OVS) runs within the service VM, which is not a real-time VM.
So my question is:
Could other applications within the SOS user space or kernel space interfere with the switch so that I might get non-deterministic latencies for the communication between VMs and external components? 
If yes, are there any alternative approaches to ensure deterministic low-latency communication within ACRN?

Best
Florian

 


2022 ACRN Project Technical Community Meeting Minutes - WW17'22

Zou, Terry
 

ACRN Project TCM - 20th April 2022
Location    Online by Zoom: https://zoom.com.cn/j/320664063   
Attendees (Total 20, 20/04)
Agenda
  1. ACRN project update:  N/A
  2. ‘WW17’22 ACRN DX: Overview and new configurator preview’ Xie Nanlin
Download foil from ACRN Presentation->WW17’22
Description: We will briefly go through ACRN Development Experience(DX) past, current and future working to explain why and what we are keep doing to make ACRN an easy-to-use product.
       
  1. All: Community open discussion.
Q&A: N/A
 
  1. Next meeting agenda proposal:
WW Topic Presenter Status
Chinese New Year Break
WW12 Libvirt Enhancement Introduction Wu Xiangyang 3/16/2022
WW17 ACRN DX: New config/para Design and Application Xie Nanlin 4/20/2022
WW21 ACRN Based X86 OPTEE Introduction Liu Yifan 5/18/2022
WW25 ACRN Modularization Introduction Chen Jason 6/15/2022
WW30 ACRN DX: Dynamic Parameter Configuration Liu, Hang 7/20/2022
Marketing/Events   N/A
Resources     Project URL: 
  1. Portal: https://projectacrn.org   
  2. Source code: https://github.com/projectacrn   
  3. email: info@... 
  4. Technical Mailing list: acrn-dev@... 
 
 


Re: Virtual communication in ACRN

Yu Wang
 

Hi Arnold,

On Tue, Apr 19, 2022 at 02:24:03PM +0000, Florian Arnold wrote:
Hi everyone,

I am currently working on a system with real-time and non-realtime VMs, and I need to implement some network communication between different VMs and external components. I read the high-level design guides, especially the parts about device emulation and virtio, to understand what communication is already supported by ACRN. Unfortunately, I am not sure if I got it right so far. So maybe you guys could help me understand a few things.

My questions are:

* As I understand, I can connect two VMs with a virtual network. I assume this virtual communication is based on shared memory as well. Is that correct?
Yes. The virtio-network can support communication across post-launched
VMs and SOS. And virtio is a shared memory based PV solution.

* Is it possible to connect multiple VMs with something like a virtual switch? I'm thinking of something similar to virtual switches on ESXi Servers (https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/virtual_networking_concepts.pdf)
Yes. The service VM will create a virtual switch/bridge that can connect
to both physical NIC and virtual NIC. You can refer following link:

https://projectacrn.github.io/latest/developer-guides/hld/virtio-net.html
https://projectacrn.github.io/1.6.1/tutorials/open_vswitch.html

* If something like a virtual switch exists in ACRN, does it live in the hypervisor itself or the service VM?
It lived in Service VM, so it only supports network communication across
SOS and post-launched VMs.

* Do pre-launched VMs always require dedicated hardware for network communication, or can they share devices emulated by the service VM?
Pre-launched VM doesn’t support virtio-network. Ivshmem and vuart are
the only ways for interacting across the pre-launched VM and other VMs.

Thanks
Yu


I hope those are not too many questions. Even some answers would help me a lot.

I appreciate any help you can provide.

Best
Florian





Virtual communication in ACRN

Florian Arnold
 

Hi everyone,

 

I am currently working on a system with real-time and non-realtime VMs, and I need to implement some network communication between different VMs and external components. I read the high-level design guides, especially the parts about device emulation and virtio, to understand what communication is already supported by ACRN. Unfortunately, I am not sure if I got it right so far. So maybe you guys could help me understand a few things.

 

My questions are:

  • As I understand, I can connect two VMs with a virtual network. I assume this virtual communication is based on shared memory as well. Is that correct?
  • Is it possible to connect multiple VMs with something like a virtual switch? I’m thinking of something similar to virtual switches on ESXi Servers (https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/virtual_networking_concepts.pdf)
  • If something like a virtual switch exists in ACRN, does it live in the hypervisor itself or the service VM?
  • Do pre-launched VMs always require dedicated hardware for network communication, or can they share devices emulated by the service VM?

 

I hope those are not too many questions. Even some answers would help me a lot.

 

I appreciate any help you can provide.

 

Best

Florian


Re: CAT definition in the scenario xmls

Minggui Cao
 

I mean you can get L3 caches info from CPUID first.

 

And then you can try cmd in ACRN console:

  rdmsr 0xc90

 

or wrmsr 0xc90 0x0ff

 

thanks!

Minggui

 

From: acrn-users@... <acrn-users@...> On Behalf Of jordan.nowak22@...
Sent: Monday, April 11, 2022 2:14 PM
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

Hi Minggui,

The settings that i set in wrmsr through ACRN console is working
i'm trying to reproduce this through VM Configuration

Below is the xmls that i trying to set, but its weird that ACRN is not booting up after i change the value in xmls.

 

  <CLOS_INFO>

        rdt resources supported: L3

        rdt resource clos max: 4

        rdt resource mask max: '0xfff'

        </CLOS_INFO>

 

 

      <RDT>

        <RDT_ENABLED>y</RDT_ENABLED>

        <CDP_ENABLED>n</CDP_ENABLED>

        <CLOS_MASK>0x0ff</CLOS_MASK>

        <CLOS_MASK>0xf00</CLOS_MASK>

        <CLOS_MASK>0x0ff</CLOS_MASK>

        <CLOS_MASK>0x0ff</CLOS_MASK>

      </RDT>


Re: CAT definition in the scenario xmls

jordan.nowak22@...
 

Hi Minggui,

The settings that i set in wrmsr through ACRN console is working
i'm trying to reproduce this through VM Configuration

Below is the xmls that i trying to set, but its weird that ACRN is not booting up after i change the value in xmls.

 

  <CLOS_INFO>

        rdt resources supported: L3

        rdt resource clos max: 4

        rdt resource mask max: '0xfff'

        </CLOS_INFO>

 

 

      <RDT>

        <RDT_ENABLED>y</RDT_ENABLED>

        <CDP_ENABLED>n</CDP_ENABLED>

        <CLOS_MASK>0x0ff</CLOS_MASK>

        <CLOS_MASK>0xf00</CLOS_MASK>

        <CLOS_MASK>0x0ff</CLOS_MASK>

        <CLOS_MASK>0x0ff</CLOS_MASK>

      </RDT>


Re: CAT definition in the scenario xmls

Minggui Cao
 

It depends on your board, you can use wrmsr in ACRN console to try your setting first.

 

Thanks!

Minggui

 

From: acrn-users@... <acrn-users@...> On Behalf Of jordan.nowak22@...
Sent: Monday, April 11, 2022 11:32 AM
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

Hi Minggui,

i've tried  https://github.com/projectacrn/acrn-hypervisor/commit/61074ce1ee1e3925699613c92a49db0264ebf4c3
Similar parameter that i define in my board and scenario xmls.

but i run into a trouble in booting up
has this been tested?
see this below logs from ACRN Shell.

================================================

[131610410us][cpu=2][(null)][sev=2][seq=11160]:================================

=

 

[131618981us][cpu=2][(null)][sev=2][seq=11161]:= Unhandled exception: 6 (Invalid Opcode)

 

[131628141us][cpu=2][(null)][sev=2][seq=11162]:

Host Registers:

 

[131635138us][cpu=2][(null)][sev=2][seq=11163]:=  Vector=0x0000000000000006  RIP=0x000000001100E629

 

[131645374us][cpu=2][(null)][sev=2][seq=11164]:=     RAX=0x0000000000000000  RBX=0x0000000000000002  RCX=0x0000000000000002

 

[131657979us][cpu=2][(null)][sev=2][seq=11165]:=     RDX=0x0000000011218000  RDI=0x0000000011219A58  RSI=0x000000000000000A

 

[131670586us][cpu=2][(null)][sev=2][seq=11166]:=     RSP=0x000000001121E798  RBP=0x000000001121E7A8  RBX=0x0000000000000002

 

[131683194us][cpu=2][(null)][sev=2][seq=11167]:=      R8=0x0000000000000002   R9=0x0000000000000000  R10=0x00000000000003F8

 

[131695800us][cpu=2][(null)][sev=2][seq=11168]:=     R11=0x000000001104917A  R12=0x0000000000000002  R13=0x0000000000000002

 

[131708405us][cpu=2][(null)][sev=2][seq=11169]:=  RFLAGS=0x0000000000010046  R14=0x0000000000000002  R15=0x0000000011054140

 

[131721014us][cpu=2][(null)][sev=2][seq=11170]:= ERRCODE=0x0000000000000000   CS=0x0000000000000008   SS=0x0000000000000010

 

[131733623us][cpu=2][(null)][sev=2][seq=11171]:= CR2=0x0000000000000000

[131740911us][cpu=2][(null)][sev=2][seq=11172]:

 

[131746134us][cpu=2][(null)][sev=2][seq=11173]:=====================================================

[131756280us][cpu=2][(null)][sev=2][seq=11174]:===========================

 

[131764065us][cpu=2][(null)][sev=2][seq=11175]:

delta = (actual_load_address - CONFIG_HV_RAM_START) = 0x0

 

[131775292us][cpu=2][(null)][sev=2][seq=11176]:

Host Stack: CPU_ID = 2

 

[131782979us][cpu=2][(null)][sev=2][seq=11177]:addr(0x1121e700) 0x000000001121e7a8  0x000000000000000a  0x0000000011219a58  0x0000000000000002

 

[131797557us][cpu=2][(null)][sev=2][seq=11178]:addr(0x1121e720) 0x0000000000000000  0x00000000000003f8  0x000000001104917a  0x0000000000000002

 

[131812137us][cpu=2][(null)][sev=2][seq=11179]:addr(0x1121e740) 0x0000000000000002  0x0000000000000002  0x0000000011054140  0x0000000000000006

 

[131826717us][cpu=2][(null)][sev=2][seq=11180]:addr(0x1121e760) 0x0000000000000000  0x000000001100e629  0x0000000000000008  0x0000000000010046

 

[131841296us][cpu=2][(null)][sev=2][seq=11181]:addr(0x1121e780) 0x000000001121e798  0x0000000000000010  0x000000001121e7e8  0x0000000000000002

 

[131855876us][cpu=2][(null)][sev=2][seq=11182]:addr(0x1121e7a0) 0xc2af95c22d966d8f  0x000000001121e7d8  0x000000001100919e  0x0000000000000002

 

[131870447us][cpu=2][(null)][sev=2][seq=11183]:addr(0x1121e7c0) 0x0000000000000002  0x0000000000000002  0x0000000000000002  0x000000001121e8b8

 

[131885022us][cpu=2][(null)][sev=2][seq=11184]:addr(0x1121e7e0) 0x0000000011013588  0x0000000000000000  0x0000000000000002  0x0000000011218000

 

[131899593us][cpu=2][(null)][sev=2][seq=11185]:addr(0x1121e800) 0x0000000000000002  0x000000001121e810  0x000000001121e8b8  0x000000000000000a

 

[131914169us][cpu=2][(null)][sev=2][seq=11186]:addr(0x1121e820) 0x0000000011219a58  0x0000000000000002  0x0000000000000000  0x00000000000003f8

 

[131928747us][cpu=2][(null)][sev=2][seq=11187]:addr(0x1121e840) 0x000000001104917a  0x0000000000000002  0x0000000000000002  0x0000000000000002

 

[131943325us][cpu=2][(null)][sev=2][seq=11188]:addr(0x1121e860) 0x0000000011054140  0x0000000000000006  0x0000000000000000  0x000000001100e629

 

[131957900us][cpu=2][(null)][sev=2][seq=11189]:addr(0x1121e880) 0x0000000000000008  0x0000000000010046  0x000000001121e8a8  0x0000000000000010

 

[131972481us][cpu=2][(null)][sev=2][seq=11190]:addr(0x1121e8a0) 0x000000001121e8f8  0x0000000000000002  0xc2af95c22d966d8f  0x000000001121e8e8

 

[131987052us][cpu=2][(null)][sev=2][seq=11191]:addr(0x1121e8c0) 0x000000001100919e  0x0000000000000002  0x0000000000000002  0x0000000000000002

 

[132001627us][cpu=2][(null)][sev=2][seq=11192]:addr(0x1121e8e0) 0x0000000000000002  0x000000001121e9c8  0x0000000011013588  0x0000000000000000

 

[132016204us][cpu=2][(null)][sev=2][seq=11193]:

 

[132021423us][cpu=2][(null)][sev=2][seq=11194]:Host Call Trace:

 

[132028223us][cpu=2][(null)][sev=2][seq=11195]:----> 0x000000001100919e

 

[132035802us][cpu=2][(null)][sev=2][seq=11196]:----> 0x0000000011013588

 

[132043390us][cpu=2][(null)][sev=2][seq=11197]:----> 0x000000001100919e

 

[132050980us][cpu=2][(null)][sev=2][seq=11198]:----> 0x0000000011013588

 

[132058567us][cpu=2][(null)][sev=2][seq=11199]:----> 0x000000001100919e

 

[132066151us][cpu=2][(null)][sev=2][seq=11200]:----> 0x0000000011013588

 

[132073735us][cpu=2][(null)][sev=2][seq=11201]:----> 0x000000001100919e

 

[132081319us][cpu=2][(null)][sev=2][seq=11202]:----> 0x0000000011013588

 

[132088906us][cpu=2][(null)][sev=2][seq=11203]:----> 0x000000001100919e

 

[132096494us][cpu=2][(null)][sev=2][seq=11204]:----> 0x0000000011013588

 

[132104082us][cpu=2][(null)][sev=2][seq=11205]:----> 0x000000001100919e

 

[132111671us][cpu=2][(null)][sev=2][seq=11206]:----> 0x0000000011013588

 

[132119260us][cpu=2][(null)][sev=2][seq=11207]:----> 0x000000001100919e

 

[132126847us][cpu=2][(null)][sev=2][seq=11208]:----> 0x0000000011013588

 

[132134436us][cpu=2][(null)][sev=2][seq=11209]:----> 0x000000001100919e

 

[132142020us][cpu=2][(null)][sev=2][seq=11210]:----> 0x0000000011013588

 

[132149602us][cpu=2][(null)][sev=2][seq=11211]:----> 0x000000001100919e

 

[132157189us][cpu=2][(null)][sev=2][seq=11212]:----> 0x0000000011013588

 

[132164777us][cpu=2][(null)][sev=2][seq=11213]:----> 0x000000001100919e

 

[132172364us][cpu=2][(null)][sev=2][seq=11214]:----> 0x0000000011013588

 

[132179952us][cpu=2][(null)][sev=2][seq=11215]:

 

[132185781us][cpu=3][(null)][sev=2][seq=11216]:


Re: CAT definition in the scenario xmls

jordan.nowak22@...
 

Hi Minggui,

i've tried  https://github.com/projectacrn/acrn-hypervisor/commit/61074ce1ee1e3925699613c92a49db0264ebf4c3
Similar parameter that i define in my board and scenario xmls.

but i run into a trouble in booting up
has this been tested?
see this below logs from ACRN Shell.


================================================

[131610410us][cpu=2][(null)][sev=2][seq=11160]:================================

=

 

[131618981us][cpu=2][(null)][sev=2][seq=11161]:= Unhandled exception: 6 (Invalid Opcode)

 

[131628141us][cpu=2][(null)][sev=2][seq=11162]:

Host Registers:

 

[131635138us][cpu=2][(null)][sev=2][seq=11163]:=  Vector=0x0000000000000006  RIP=0x000000001100E629

 

[131645374us][cpu=2][(null)][sev=2][seq=11164]:=     RAX=0x0000000000000000  RBX=0x0000000000000002  RCX=0x0000000000000002

 

[131657979us][cpu=2][(null)][sev=2][seq=11165]:=     RDX=0x0000000011218000  RDI=0x0000000011219A58  RSI=0x000000000000000A

 

[131670586us][cpu=2][(null)][sev=2][seq=11166]:=     RSP=0x000000001121E798  RBP=0x000000001121E7A8  RBX=0x0000000000000002

 

[131683194us][cpu=2][(null)][sev=2][seq=11167]:=      R8=0x0000000000000002   R9=0x0000000000000000  R10=0x00000000000003F8

 

[131695800us][cpu=2][(null)][sev=2][seq=11168]:=     R11=0x000000001104917A  R12=0x0000000000000002  R13=0x0000000000000002

 

[131708405us][cpu=2][(null)][sev=2][seq=11169]:=  RFLAGS=0x0000000000010046  R14=0x0000000000000002  R15=0x0000000011054140

 

[131721014us][cpu=2][(null)][sev=2][seq=11170]:= ERRCODE=0x0000000000000000   CS=0x0000000000000008   SS=0x0000000000000010

 

[131733623us][cpu=2][(null)][sev=2][seq=11171]:= CR2=0x0000000000000000

[131740911us][cpu=2][(null)][sev=2][seq=11172]:

 

[131746134us][cpu=2][(null)][sev=2][seq=11173]:=====================================================

[131756280us][cpu=2][(null)][sev=2][seq=11174]:===========================

 

[131764065us][cpu=2][(null)][sev=2][seq=11175]:

delta = (actual_load_address - CONFIG_HV_RAM_START) = 0x0

 

[131775292us][cpu=2][(null)][sev=2][seq=11176]:

Host Stack: CPU_ID = 2

 

[131782979us][cpu=2][(null)][sev=2][seq=11177]:addr(0x1121e700) 0x000000001121e7a8  0x000000000000000a  0x0000000011219a58  0x0000000000000002

 

[131797557us][cpu=2][(null)][sev=2][seq=11178]:addr(0x1121e720) 0x0000000000000000  0x00000000000003f8  0x000000001104917a  0x0000000000000002

 

[131812137us][cpu=2][(null)][sev=2][seq=11179]:addr(0x1121e740) 0x0000000000000002  0x0000000000000002  0x0000000011054140  0x0000000000000006

 

[131826717us][cpu=2][(null)][sev=2][seq=11180]:addr(0x1121e760) 0x0000000000000000  0x000000001100e629  0x0000000000000008  0x0000000000010046

 

[131841296us][cpu=2][(null)][sev=2][seq=11181]:addr(0x1121e780) 0x000000001121e798  0x0000000000000010  0x000000001121e7e8  0x0000000000000002

 

[131855876us][cpu=2][(null)][sev=2][seq=11182]:addr(0x1121e7a0) 0xc2af95c22d966d8f  0x000000001121e7d8  0x000000001100919e  0x0000000000000002

 

[131870447us][cpu=2][(null)][sev=2][seq=11183]:addr(0x1121e7c0) 0x0000000000000002  0x0000000000000002  0x0000000000000002  0x000000001121e8b8

 

[131885022us][cpu=2][(null)][sev=2][seq=11184]:addr(0x1121e7e0) 0x0000000011013588  0x0000000000000000  0x0000000000000002  0x0000000011218000

 

[131899593us][cpu=2][(null)][sev=2][seq=11185]:addr(0x1121e800) 0x0000000000000002  0x000000001121e810  0x000000001121e8b8  0x000000000000000a

 

[131914169us][cpu=2][(null)][sev=2][seq=11186]:addr(0x1121e820) 0x0000000011219a58  0x0000000000000002  0x0000000000000000  0x00000000000003f8

 

[131928747us][cpu=2][(null)][sev=2][seq=11187]:addr(0x1121e840) 0x000000001104917a  0x0000000000000002  0x0000000000000002  0x0000000000000002

 

[131943325us][cpu=2][(null)][sev=2][seq=11188]:addr(0x1121e860) 0x0000000011054140  0x0000000000000006  0x0000000000000000  0x000000001100e629

 

[131957900us][cpu=2][(null)][sev=2][seq=11189]:addr(0x1121e880) 0x0000000000000008  0x0000000000010046  0x000000001121e8a8  0x0000000000000010

 

[131972481us][cpu=2][(null)][sev=2][seq=11190]:addr(0x1121e8a0) 0x000000001121e8f8  0x0000000000000002  0xc2af95c22d966d8f  0x000000001121e8e8

 

[131987052us][cpu=2][(null)][sev=2][seq=11191]:addr(0x1121e8c0) 0x000000001100919e  0x0000000000000002  0x0000000000000002  0x0000000000000002

 

[132001627us][cpu=2][(null)][sev=2][seq=11192]:addr(0x1121e8e0) 0x0000000000000002  0x000000001121e9c8  0x0000000011013588  0x0000000000000000

 

[132016204us][cpu=2][(null)][sev=2][seq=11193]:

 

[132021423us][cpu=2][(null)][sev=2][seq=11194]:Host Call Trace:

 

[132028223us][cpu=2][(null)][sev=2][seq=11195]:----> 0x000000001100919e

 

[132035802us][cpu=2][(null)][sev=2][seq=11196]:----> 0x0000000011013588

 

[132043390us][cpu=2][(null)][sev=2][seq=11197]:----> 0x000000001100919e

 

[132050980us][cpu=2][(null)][sev=2][seq=11198]:----> 0x0000000011013588

 

[132058567us][cpu=2][(null)][sev=2][seq=11199]:----> 0x000000001100919e

 

[132066151us][cpu=2][(null)][sev=2][seq=11200]:----> 0x0000000011013588

 

[132073735us][cpu=2][(null)][sev=2][seq=11201]:----> 0x000000001100919e

 

[132081319us][cpu=2][(null)][sev=2][seq=11202]:----> 0x0000000011013588

 

[132088906us][cpu=2][(null)][sev=2][seq=11203]:----> 0x000000001100919e

 

[132096494us][cpu=2][(null)][sev=2][seq=11204]:----> 0x0000000011013588

 

[132104082us][cpu=2][(null)][sev=2][seq=11205]:----> 0x000000001100919e

 

[132111671us][cpu=2][(null)][sev=2][seq=11206]:----> 0x0000000011013588

 

[132119260us][cpu=2][(null)][sev=2][seq=11207]:----> 0x000000001100919e

 

[132126847us][cpu=2][(null)][sev=2][seq=11208]:----> 0x0000000011013588

 

[132134436us][cpu=2][(null)][sev=2][seq=11209]:----> 0x000000001100919e

 

[132142020us][cpu=2][(null)][sev=2][seq=11210]:----> 0x0000000011013588

 

[132149602us][cpu=2][(null)][sev=2][seq=11211]:----> 0x000000001100919e

 

[132157189us][cpu=2][(null)][sev=2][seq=11212]:----> 0x0000000011013588

 

[132164777us][cpu=2][(null)][sev=2][seq=11213]:----> 0x000000001100919e

 

[132172364us][cpu=2][(null)][sev=2][seq=11214]:----> 0x0000000011013588

 

[132179952us][cpu=2][(null)][sev=2][seq=11215]:

 

[132185781us][cpu=3][(null)][sev=2][seq=11216]:



Re: Using perf to access hardware events in pre-launched VM

Paolo Crotti
 

I managed to compile the kernel with the option you told me. The console is now working correctly.

Thanks again for your help!


Re: Using perf to access hardware events in pre-launched VM

Paolo Crotti
 

Hi Minggui,

Sorry if i haven't answered anymore but i'm having problems with kernel recompilation. As soon as I have solved it I'll let you know.


Re: CAT definition in the scenario xmls

Geoffroy Van Cutsem
 

I’d love to see that being added to our code, would you care to develop and patch and submit it upstream? 😉

 

Thanks!
Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Minggui Cao
Sent: Saturday, April 2, 2022 2:04 am
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

Yes, correct.

 

You can add your code in function: setup_clos

 

There is a data structure: res_cap_info, if possible, you also can re-use it to configure your L2 CAT.

 

Thanks

Minggui

 

From: acrn-users@... <acrn-users@...> On Behalf Of jordan.nowak22@...
Sent: Friday, April 1, 2022 2:54 PM
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration

When you say RDT code. do you mean this below path to code?
hypervisor/arch/x86/rdt.c


Re: CAT definition in the scenario xmls

Minggui Cao
 

Yes, correct.

 

You can add your code in function: setup_clos

 

There is a data structure: res_cap_info, if possible, you also can re-use it to configure your L2 CAT.

 

Thanks

Minggui

 

From: acrn-users@... <acrn-users@...> On Behalf Of jordan.nowak22@...
Sent: Friday, April 1, 2022 2:54 PM
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration

When you say RDT code. do you mean this below path to code?
hypervisor/arch/x86/rdt.c


Re: Using perf to access hardware events in pre-launched VM

Minggui Cao
 

Just synced with my colleague, the issue could be caused in your kernel configure of pre-launched VM:

CONFIG_SERIAL_8250_DETECT_IRQ=y

 

 

Please confirm.

 

Thanks

Minggui

 

From: acrn-users@... <acrn-users@...> On Behalf Of Paolo Crotti
Sent: Thursday, March 31, 2022 4:57 PM
To: acrn-users@...
Subject: Re: [acrn-users] Using perf to access hardware events in pre-launched VM

 

Yes, with the vm terminal I meant ACRN console. After the boot (vm_console 0), the console becomes unusable but the kernel starts correctly.


Re: CAT definition in the scenario xmls

jordan.nowak22@...
 

Yes i already tested on ACRN console, what i'm trying to achieve is a permanent configuration

When you say RDT code. do you mean this below path to code?
hypervisor/arch/x86/rdt.c


Re: CAT definition in the scenario xmls

Minggui Cao
 

Hi, Jordan,

   You can use “wrmsr “ in ACRN console first to configure L2 CAT. If it works for your expectation. You can it into rdt code.

 

Thanks!

Minggui

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of jordan.nowak22@...
Sent: Thursday, March 31, 2022 9:35 AM
To: acrn-users@...
Subject: Re: [acrn-users] CAT definition in the scenario xmls

 

[Edited Message Follows]

Hi Minggui,

For both L2 and L3 CAT support, do you have any example when you say hard code? 
or is there any documentation that states this?


Re: Using perf to access hardware events in pre-launched VM

Paolo Crotti
 

Yes, with the vm terminal I meant ACRN console. After the boot (vm_console 0), the console becomes unusable but the kernel starts correctly.


Re: CAT definition in the scenario xmls

jordan.nowak22@...
 
Edited

Hi Minggui,

For both L2 and L3 CAT support, do you have any example when you say hard code? 
or is there any documentation that states this?