qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
@ 2008-08-11 10:37 Alexander Graf
  2008-08-18 14:31 ` Anthony Liguori
  2008-08-21 19:38 ` Anthony Liguori
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Graf @ 2008-08-11 10:37 UTC (permalink / raw)
  To: qemu-devel, fabrice

Hi,

this set of patches attempts to implement a CPU definition set for 
current Intel CPUs that resembles an original as closely as currently 
possible. Several features a current Intel CPU has are not implemented 
by qemu, but that should not keep us from adding this definition so 
people can add features later on.

As a side effect, I made the sysenter instruction 64-bit aware. This was 
an issue in KVM, that used the 32-bit cpu struct variables to hold 
64-bit MSR  values sysenter needs. I believe it to be a step in the 
right direction to not fix this only for KVM, but make the functionality 
available to qemu as well.

Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-11 10:37 [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification Alexander Graf
@ 2008-08-18 14:31 ` Anthony Liguori
  2008-08-18 14:43   ` Alexander Graf
  2008-08-18 15:02   ` Alexander Graf
  2008-08-21 19:38 ` Anthony Liguori
  1 sibling, 2 replies; 7+ messages in thread
From: Anthony Liguori @ 2008-08-18 14:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alexander Graf

Alexander Graf wrote:
> Hi,
>
> this set of patches attempts to implement a CPU definition set for 
> current Intel CPUs that resembles an original as closely as currently 
> possible. Several features a current Intel CPU has are not implemented 
> by qemu, but that should not keep us from adding this definition so 
> people can add features later on.
>
> As a side effect, I made the sysenter instruction 64-bit aware. This 
> was an issue in KVM, that used the 32-bit cpu struct variables to hold 
> 64-bit MSR  values sysenter needs. I believe it to be a step in the 
> right direction to not fix this only for KVM, but make the 
> functionality available to qemu as well.

Does anyone have any objections to this series?  I see no obvious flaws 
and it looks to be quite self contained.  My understanding is that this 
is needed to enable OS X guest support so it seems worthwhile to apply 
to me.

Regards,

Anthony Liguori

> Alex
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-18 14:31 ` Anthony Liguori
@ 2008-08-18 14:43   ` Alexander Graf
  2008-08-18 15:02   ` Alexander Graf
  1 sibling, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2008-08-18 14:43 UTC (permalink / raw)
  To: qemu-devel


On Aug 18, 2008, at 4:31 PM, Anthony Liguori wrote:

> Alexander Graf wrote:
>> Hi,
>>
>> this set of patches attempts to implement a CPU definition set for  
>> current Intel CPUs that resembles an original as closely as  
>> currently possible. Several features a current Intel CPU has are  
>> not implemented by qemu, but that should not keep us from adding  
>> this definition so people can add features later on.
>>
>> As a side effect, I made the sysenter instruction 64-bit aware.  
>> This was an issue in KVM, that used the 32-bit cpu struct variables  
>> to hold 64-bit MSR  values sysenter needs. I believe it to be a  
>> step in the right direction to not fix this only for KVM, but make  
>> the functionality available to qemu as well.
>
> Does anyone have any objections to this series?  I see no obvious  
> flaws and it looks to be quite self contained.  My understanding is  
> that this is needed to enable OS X guest support so it seems  
> worthwhile to apply to me.

It's missing save/restore support. I'll post an updated series later  
today.

Alex

>
>
> Regards,
>
> Anthony Liguori
>
>> Alex
>>
>>
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-18 14:31 ` Anthony Liguori
  2008-08-18 14:43   ` Alexander Graf
@ 2008-08-18 15:02   ` Alexander Graf
  2008-08-18 21:31     ` Alexey Eremenko
  1 sibling, 1 reply; 7+ messages in thread
From: Alexander Graf @ 2008-08-18 15:02 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel


On Aug 18, 2008, at 4:31 PM, Anthony Liguori wrote:

> Alexander Graf wrote:
>> Hi,
>>
>> this set of patches attempts to implement a CPU definition set for  
>> current Intel CPUs that resembles an original as closely as  
>> currently possible. Several features a current Intel CPU has are  
>> not implemented by qemu, but that should not keep us from adding  
>> this definition so people can add features later on.
>>
>> As a side effect, I made the sysenter instruction 64-bit aware.  
>> This was an issue in KVM, that used the 32-bit cpu struct variables  
>> to hold 64-bit MSR  values sysenter needs. I believe it to be a  
>> step in the right direction to not fix this only for KVM, but make  
>> the functionality available to qemu as well.
>
> Does anyone have any objections to this series?  I see no obvious  
> flaws and it looks to be quite self contained.  My understanding is  
> that this is needed to enable OS X guest support so it seems  
> worthwhile to apply to me.

It is really useful for OS X, but actually helps in even more cases.  
It unbreaks KVM x86_64 on Intel and it enables people to implement  
Intel-only features in x86_64 qemu code, like VMX for example.
It also shows some flaws in the current KVM implementation, that  
breaks on CPUID 4.

So yes, I'd really love to see this applied.

Thanks,

Alex

>
>
> Regards,
>
> Anthony Liguori
>
>> Alex
>>
>>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-18 15:02   ` Alexander Graf
@ 2008-08-18 21:31     ` Alexey Eremenko
  2008-08-19  5:57       ` Alexander Graf
  0 siblings, 1 reply; 7+ messages in thread
From: Alexey Eremenko @ 2008-08-18 21:31 UTC (permalink / raw)
  To: qemu-devel

Yes, being able to emulate Core 2 CPU is important.

Does it emulate also the CPU Name string, or only CPU feature flags ?

-- 
-Alexey Eromenko "Technologov"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-18 21:31     ` Alexey Eremenko
@ 2008-08-19  5:57       ` Alexander Graf
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2008-08-19  5:57 UTC (permalink / raw)
  To: qemu-devel@nongnu.org


Am 18.08.2008 um 23:31 schrieb "Alexey Eremenko" <al4321@gmail.com>:

> Yes, being able to emulate Core 2 CPU is important.
>
> Does it emulate also the CPU Name string, or only CPU feature flags ?
>

It emulates the name string too, but has a hard coded Mhz value.
Also not all features are emulated by qemu atm, so only those feates  
that are are included in the features list.

Alex

> -- 
> -Alexey Eromenko "Technologov"
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification
  2008-08-11 10:37 [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification Alexander Graf
  2008-08-18 14:31 ` Anthony Liguori
@ 2008-08-21 19:38 ` Anthony Liguori
  1 sibling, 0 replies; 7+ messages in thread
From: Anthony Liguori @ 2008-08-21 19:38 UTC (permalink / raw)
  To: qemu-devel

Alexander Graf wrote:
> Hi,
>
> this set of patches attempts to implement a CPU definition set for 
> current Intel CPUs that resembles an original as closely as currently 
> possible. Several features a current Intel CPU has are not implemented 
> by qemu, but that should not keep us from adding this definition so 
> people can add features later on.
>
> As a side effect, I made the sysenter instruction 64-bit aware. This 
> was an issue in KVM, that used the 32-bit cpu struct variables to hold 
> 64-bit MSR  values sysenter needs. I believe it to be a step in the 
> right direction to not fix this only for KVM, but make the 
> functionality available to qemu as well.

Can you please base theses patches off of the QEMU SVN repository 
instead of the kvm-userspace repository.

Regards,

Anthony Liguori

> Alex
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-21 19:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-11 10:37 [Qemu-devel] [PATCH 0/3] [x86] Add Core 2 Duo CPU specification Alexander Graf
2008-08-18 14:31 ` Anthony Liguori
2008-08-18 14:43   ` Alexander Graf
2008-08-18 15:02   ` Alexander Graf
2008-08-18 21:31     ` Alexey Eremenko
2008-08-19  5:57       ` Alexander Graf
2008-08-21 19:38 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).