On 26 November 2015 at 17:33, Abhinav Sharma <abhinav92...@gmail.com> wrote: > Hi, > What does Qemu do when invoked using "-cpu host" option that sets target CPU > same as the host CPU? > > Is it that when this option is used Qemu performs no binary translation? > Because the target CPU is same as host CPU, code compiled for target CPU may > run directly on host CPU. > > Or does Qemu discover the configuration of host CPU, automatically use the > most appropriate flag and cpu values, and use binary translation anyway?
That depends what target architecture you're using. For instance for ARM targets, "-cpu host" is only valid if KVM is enabled and is an error otherwise. thanks -- PMM