Hello,
and ping.
Olaf
On Wed, Aug 17, Olaf Hering wrote:
> Starting with xen-4.7 cpuid() will return with the hypervisor bit set
> in a dom0 when running on an AMD system. As a result biosdevname
> thinks it runs in a guest and does nothing. Detect a dom0 by looking
> into xenfs. This works
On 17/08/16 12:51, Jan Beulich wrote:
On 17.08.16 at 12:30, wrote:
>> @@ -144,7 +171,11 @@ running_in_virtual_machine (void)
>>
>> ecx = cpuid (eax, ecx);
>> if (ecx & 0x8000U)
>> +{
>> + if (running_in_dom0())
>> + return 0;
>>
>>> On 17.08.16 at 12:30, wrote:
> @@ -144,7 +171,11 @@ running_in_virtual_machine (void)
>
> ecx = cpuid (eax, ecx);
> if (ecx & 0x8000U)
> +{
> + if (running_in_dom0())
> + return 0;
> return 1;
> +}
> return 0;
> }
Isn't