OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:19 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to enable x2apic in qemu
PostPosted: Sun Dec 12, 2021 2:24 pm 
Offline

Joined: Fri Nov 12, 2021 1:09 am
Posts: 12
I'm now working on the initializing code of x2apic, but my qemu gives me this warning:
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]
When I want to check whether my emulator supports x2apic or not.

My work platform is on a virtual machine, so it does not support KVM. I'm now wondering do I have to switch to the physical machine to enable KVM and x2apic in order to use these features and continue my work

Here is my command to start qemu:
qemu-system-x86_64 -cpu qemu64,+x2apic -s -S -fda a.img


Top
 Profile  
 
 Post subject: Re: How to enable x2apic in qemu
PostPosted: Sun Dec 12, 2021 6:14 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Unfortunately, QEMU does not emulate x2apic. You have to use KVM (or a different emulator).

You might not need to switch to a physical machine. Some VMs support nested virtualization, which would allow you to use KVM inside your VM.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group