Re: How to get out of 'vmexit'


Geoffroy Van Cutsem
 

Thanks for the confirmation. I will see if I can find a different HW to test with. I have tried a few more times on the NUC7i7DNHE and it consistently get stuck... here is what I see:
ACRN:\>help

Registered Commands:

help - Display info about the supported shell commands.
vm_list - Lists all VMs (VM Name, VM ID, VM State)
vcpu_list - Lists all VCPU in all VMs
vcpu_dumpreg <vm id, vcpu id> - Dump registers for a specific vcpu
dumpmem <addr, length> - Dump physical memory
sos_console - Switch to SOS's console
int - show interrupt info per CPU
pt - show pass-through device info
vioapic <vm id> - show vioapic info
<*** Hit any key to continue ***>
dump_ioapic - show native ioapic info
vmexit - show vmexit profiling
logdump <pcpu id> - log buffer dump
loglevel [<console_loglevel> [<mem_loglevel> [npk_loglevel]]] - get(para is NULL), or set loglevel [0-6]
cpuid <leaf> [subleaf] - cpuid leaf [subleaf], in hexadecimal
reboot - trigger system reboot

ACRN:\>vmexit

Now(us) = 4223430024

REASON CPU0 US CPU1 US CPU2 US CPU3 US CPU4 US CPU5 US CPU6 US S
0x0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x1 14600077 53280313 1247473 4362223 726047 2548496 10126609 10870524 933066 3026782 611489 2023703 594136 2106928 7
0x2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x7 13766650 22260120 714971 1906725 322174 501116 1157524 1340668 310273 478948 293901 450526 343812 542715 7
0x8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0xa 14062 8893 1580 903 1469 830 3486 1904 859 454 2350 1202 1611 840 0
0xb 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0xc 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0xd 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0xe 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0xf 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x12 4065995 5997701 1315958 2137715 1814711 2830901 16 37 811881 1193936 828497 1271607 514511 815656 0
0x13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x14 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x17 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x19 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x1a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x1b 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x1c 6 1092 7 533 7 536 15 1046 7 532 7 536 7 532 3
0x1d 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x1e 172993 71015 49171 392549 10423 3642 278905 1612 27283 15382 35525 200705 30248 394642 6
0x1f 259 332 111 135 77 105 116 116 82 103 84 104 142 225 1
0x20 13313325 10781969 5415613 5611305 8634729 8196042 2931495 2519242 5893330 4930031 4974863 4188792 3286120 3069792 6
0x21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x22 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x26 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x27 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x2a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0x2b 0 0 0 0 0 0 0 0 0 0 0 0 0 0




And it stays there forever, with no way for me to input anything anymore in there.

Note that when that happens, the system is still happily running (SOS and UOS).

Geoffroy

-----Original Message-----
From: acrn-users@... [mailto:acrn-
users@...] On Behalf Of Minggui Cao
Sent: Friday, October 19, 2018 12:26 PM
To: acrn-users@...
Subject: Re: [acrn-users] How to get out of 'vmexit'

Normally, you're in the HV console after you input command "vmexit", you
can still input other commands.
On MRB it work well, just checked.

-----Original Message-----
From: acrn-users@... [mailto:acrn-
users@...] On Behalf Of Geoffroy Van Cutsem
Sent: Friday, October 19, 2018 4:20 PM
To: acrn-users@...
Subject: Re: [acrn-users] How to get out of 'vmexit'

I am talking about the 'vmexit' command you can use from the hypervisor
console (it's listed here: https://projectacrn.github.io/latest/user-
guides/acrn-shell.html). When I used it, it printed out a lot of info but I
couldn't figure out how to get back the console prompt (so I could issue
new/different commands).

-----Original Message-----
From: acrn-users@... [mailto:acrn-
users@...] On Behalf Of Minggui Cao
Sent: Friday, October 19, 2018 10:12 AM
To: acrn-users@...
Subject: Re: [acrn-users] How to get out of 'vmexit'

I think you're talking different things.

Vmexit command in "hypervisor console" is used to show the info/count
which cause vmexit; it is used for debug.
Not sure if it is included in our doc.

After the command "vmexit", you're still in hv console

-----Original Message-----
From: acrn-users@... [mailto:acrn-
users@...] On Behalf Of Eddie Dong
Sent: Friday, October 19, 2018 3:26 PM
To: acrn-users@...
Subject: Re: [acrn-users] How to get out of 'vmexit'

That depends on how you trigger vm-exit.

Basically, VMM needs to advance the GIP to mark the end of execution
of the guest instruction.

Thx Eddie

-----Original Message-----
From: acrn-users@...
[mailto:acrn-users@...] On Behalf Of Geoffroy Van
Cutsem
Sent: Friday, October 19, 2018 6:02 AM
To: acrn-users@...
Subject: [acrn-users] How to get out of 'vmexit'

Hi folks,

I called 'vmexit' from the hypervisor console, that displayed a
bunch of info on the screen... but I don't know how to return to the
console (and I couldn't find that in the online doc). What's the trick?

Thanks,
Geoffroy










Join acrn-users@lists.projectacrn.org to automatically receive all group messages.