Re: [Qemu-devel] Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Filip Navara
On Wed, Jun 24, 2009 at 7:46 PM, Avi Kivity wrote: > On 06/24/2009 08:37 PM, Filip Navara wrote: >> >> On Wed, Jun 24, 2009 at 11:54 AM, Avi Kivity  wrote: >> >>> >>> On 06/23/2009 12:47 AM, Andre Przywara wrote: >>> Should we ignore unhandled MSRs like QEMU or Xen do? >>> >>> I

Re: [Qemu-devel] Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Avi Kivity
On 06/24/2009 08:37 PM, Filip Navara wrote: On Wed, Jun 24, 2009 at 11:54 AM, Avi Kivity wrote: On 06/23/2009 12:47 AM, Andre Przywara wrote: Should we ignore unhandled MSRs like QEMU or Xen do? Ignoring unhandled msrs is dangerous. If a write has some effect the guest dep

Re: [Qemu-devel] Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Filip Navara
On Wed, Jun 24, 2009 at 11:54 AM, Avi Kivity wrote: > On 06/23/2009 12:47 AM, Andre Przywara wrote: >> >> Should we ignore unhandled MSRs like QEMU or Xen do? >> > > Ignoring unhandled msrs is dangerous.  If a write has some effect the guest > depends on, and we're not emulating that effect, the gu

Re: [Qemu-devel] Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Jamie Lokier
Andre Przywara wrote: > Even worse, most of them cannot be properly emulated (like disable > Lock prefix). Disable Lock prefix should be easy to emulate by ignoring it, shouldn't it? :-) -- Jamie -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord.

Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Avi Kivity
On 06/24/2009 02:04 PM, Andre Przywara wrote: Avi Kivity wrote: On 06/23/2009 12:47 AM, Andre Przywara wrote: Should we ignore unhandled MSRs like QEMU or Xen do? Ignoring unhandled msrs is dangerous. If a write has some effect the guest depends on, and we're not emulating that effect, the

Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Andre Przywara
Avi Kivity wrote: On 06/23/2009 12:47 AM, Andre Przywara wrote: Should we ignore unhandled MSRs like QEMU or Xen do? Ignoring unhandled msrs is dangerous. If a write has some effect the guest depends on, and we're not emulating that effect, the guest will fail. Similarly if you don't k

Re: [PATCH 2/2] introduce -cpu host target

2009-06-24 Thread Avi Kivity
On 06/23/2009 12:47 AM, Andre Przywara wrote: Should we ignore unhandled MSRs like QEMU or Xen do? Ignoring unhandled msrs is dangerous. If a write has some effect the guest depends on, and we're not emulating that effect, the guest will fail. Similarly if you don't know what a register

Re: [PATCH 2/2] introduce -cpu host target

2009-06-23 Thread Avi Kivity
On 06/23/2009 12:47 AM, Andre Przywara wrote: Although the guest's CPUID bits can be controlled in a fine grained way in QEMU, a simple way to inject the host CPU is missing. This is handy for KVM desktop virtualization, where one wants the guest to support the full host feature set. Introduce an

[PATCH 2/2] introduce -cpu host target

2009-06-22 Thread Andre Przywara
Although the guest's CPUID bits can be controlled in a fine grained way in QEMU, a simple way to inject the host CPU is missing. This is handy for KVM desktop virtualization, where one wants the guest to support the full host feature set. Introduce another CPU type called 'host', which will propaga