projectacrn / acrn-hypervisor

Project ACRN hypervisor
BSD 3-Clause "New" or "Revised" License
1.1k stars 506 forks source link

tutorial error in building acrn over qemu #5928

Closed iaGuoZhi closed 3 years ago

iaGuoZhi commented 3 years ago

Describe the bug When I want to boot acrn through qemu, tutorial Enable ACRN Over QEMU/KVM tells me build acrn hypervisor using tag: acrn-2020w19.5-140000p. however there is no qemu.xml in tag: acrn-2020w19.5-140000p which is used as BOARD_FILE.

Codebase

https://github.com/projectacrn/acrn-hypervisor/tree/acrn-2020w19.5-140000p/misc/acrn-config/xmls/board-xmls

gvancuts commented 3 years ago

Good catch! (I wonder how this even passed our Q&A testing... @NanlinXie ?)

We should really take the opportunity to refresh this to be based on the latest release, i.e. v2.4.

iaGuoZhi commented 3 years ago

Is there any arch-hypervisor release can build acrn over qemu? I'm eager to try ACRN over qemu.

gvancuts commented 3 years ago

I'm in the process of trying to update this document to be based on ACRN v2.4 (the latest release as of today).

Unfortunately, ACRN v2.4 does not start. It throws the following error on the console:

Loading ACRN hypervisor with SDC scenario ...
error: Can't get controller info..
Multiboot Bootloader: GRUB 2.02-2ubuntu8.21
[0us][cpu=0][(null)][sev=3][seq=1]:vlapic: Basic apicv ops is used!
detect_hardware_support, physical-address width (40) over maximum physical-address width (39)
[0us][cpu=0][(null)][sev=1][seq=2]:PANIC: init_pcpu_pre line: 132

[0us][cpu=0][(null)][sev=1][seq=3]:hardware not support!

@NanlinXie can you confirm what is the latest version that we have validated? Can you also ask one of the engineer to chime in as to what the problem may be with this ACRN v2.4 error on QEMU?

gvancuts commented 3 years ago

For information, I have tried this on both Skylake and Kaby Lake processors with the same results.

iaGuoZhi commented 3 years ago

Hi gvancuts! I'm sorry to bother you, but I'm very eager to run ACRN so as to try out what it offers. This is a really pressing deadline for me. Therefore, As Qemu can not boot ACRN now, Would you like to help me check whether ACRN v2.4 is supported in Maxtang Intel WHL-U i7-8665U (AX8665U-A2). If it is supported, I will buy a Maxtang right now.

gvancuts commented 3 years ago

Hi @iaGuoZhi , I don't have that board myself but I believe it works fine. @NanlinXie can you confirm?

The very latest platform that we support are the Tiger Lake-based NUCs (aka Tiger Canyon). E.g.:

NanlinXie commented 3 years ago

Hi, @iaGuoZhi ,

  1. For the Qemu document, there's one mistake for the ACRN tag, please try ACRN v2.0 for Qemu to see whether it works for you.
  2. Maxtang WHL board is working with the latest ACRN, but we suggested user to use ACRN v2.0 for WHL board for full feature.
  3. As geoffroy said , we are going to recommend Tiger Lake NUC to community soon, you could join our next week's TCM to see the discussion on this topic, and then decide which board you want to buy.
iaGuoZhi commented 3 years ago

Thanks! @gvancuts @NanlinXie

iaGuoZhi commented 3 years ago

image

Document of the latest version has not corrected this problem yet

gvancuts commented 3 years ago

Document of the latest version has not corrected this problem yet

Hopefully this is the last piece that we forgot to update - #6109 . And better yet, hopefully we can do yet another update to use ACRN v2.4 or the upcoming v2.5 :-)

fuzhongl commented 3 years ago

@iaGuoZhi Any more issue with the updated qemu tutorial ;please re-open it?