All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/2] X86 fixes
@ 2016-03-11 18:47 Eduardo Habkost
  2016-03-11 18:47 ` [Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled Eduardo Habkost
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Eduardo Habkost @ 2016-03-11 18:47 UTC (permalink / raw)
  To: Peter Maydell
  Cc: qemu-devel, Paolo Bonzini, Andreas Färber, Richard Henderson

The following changes since commit a648c137383d84bc4f95696e5293978d9541a26e:

  Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)

are available in the git repository at:

  git://github.com/ehabkost/qemu.git tags/x86-pull-request

for you to fetch changes up to b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:

  kvm: Remove x2apic feature from CPU model when kernel_irqchip is off (2016-03-11 15:43:48 -0300)

----------------------------------------------------------------
X86 fixes

----------------------------------------------------------------

Denis V. Lunev (1):
  hyperv: cpu hotplug fix with HyperV enabled

Lan Tianyu (1):
  kvm: Remove x2apic feature from CPU model when kernel_irqchip is off

 roms/SLOF         | 2 +-
 roms/openbios     | 2 +-
 target-i386/cpu.c | 4 ++++
 target-i386/kvm.c | 1 +
 4 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.1.0

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

* [Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled
  2016-03-11 18:47 [Qemu-devel] [PULL 0/2] X86 fixes Eduardo Habkost
@ 2016-03-11 18:47 ` Eduardo Habkost
  2016-03-11 18:47 ` [Qemu-devel] [PULL 2/2] kvm: Remove x2apic feature from CPU model when kernel_irqchip is off Eduardo Habkost
  2016-03-14 16:21 ` [Qemu-devel] [PULL 0/2] X86 fixes Peter Maydell
  2 siblings, 0 replies; 7+ messages in thread
From: Eduardo Habkost @ 2016-03-11 18:47 UTC (permalink / raw)
  To: Peter Maydell
  Cc: qemu-devel, Paolo Bonzini, Denis V. Lunev, Andreas Färber,
	Richard Henderson

From: "Denis V. Lunev" <den@openvz.org>

With Hyper-V enabled CPU hotplug stops working. The CPU appears
in device manager on Windows but does not appear in peformance
monitor and control panel.

The root of the problem is the following. Windows checks
HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE bit in CPUID. The
presence of this bit is enough to cure the situation.

The bit should be set when CPU hotplug is allowed for HyperV VM.
The check that hot_add_cpu callback is defined is enough from the
protocol point of view. Though this callback is defined almost
always thus there is no need to export that knowledge in the
other way.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Richard Henderson <rth@twiddle.net>
CC: Eduardo Habkost <ehabkost@redhat.com>
CC: "Andreas Färber" <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 roms/SLOF         | 2 +-
 roms/openbios     | 2 +-
 target-i386/kvm.c | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/roms/SLOF b/roms/SLOF
index e3d0572..b4c9380 160000
--- a/roms/SLOF
+++ b/roms/SLOF
@@ -1 +1 @@
-Subproject commit e3d05727a074619fc12d0a67f05cf2c42c875cce
+Subproject commit b4c93802a5b2c72f096649c497ec9ff5708e4456
diff --git a/roms/openbios b/roms/openbios
index 0dbda5d..bd95e4c 160000
--- a/roms/openbios
+++ b/roms/openbios
@@ -1 +1 @@
-Subproject commit 0dbda5d935f95391d16431cd3c079fbf53d668df
+Subproject commit bd95e4c193905d5ed867e96f1a720ce4cb53b59f
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 7974acb..08d6444 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -639,6 +639,7 @@ int kvm_arch_init_vcpu(CPUState *cs)
         if (cpu->hyperv_crash && has_msr_hv_crash) {
             c->edx |= HV_X64_GUEST_CRASH_MSR_AVAILABLE;
         }
+        c->edx |= HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE;
         if (cpu->hyperv_reset && has_msr_hv_reset) {
             c->eax |= HV_X64_MSR_RESET_AVAILABLE;
         }
-- 
2.1.0

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

* [Qemu-devel] [PULL 2/2] kvm: Remove x2apic feature from CPU model when kernel_irqchip is off
  2016-03-11 18:47 [Qemu-devel] [PULL 0/2] X86 fixes Eduardo Habkost
  2016-03-11 18:47 ` [Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled Eduardo Habkost
@ 2016-03-11 18:47 ` Eduardo Habkost
  2016-03-14 16:21 ` [Qemu-devel] [PULL 0/2] X86 fixes Peter Maydell
  2 siblings, 0 replies; 7+ messages in thread
From: Eduardo Habkost @ 2016-03-11 18:47 UTC (permalink / raw)
  To: Peter Maydell
  Cc: qemu-devel, Paolo Bonzini, Lan Tianyu, Andreas Färber,
	Richard Henderson

From: Lan Tianyu <tianyu.lan@intel.com>

x2apic feature is in the kvm_default_props and automatically added to all
CPU models when KVM is enabled. But userspace devices don't support x2apic
which can't be enabled without the in-kernel irqchip. It will trigger
warning of "host doesn't support requested feature: CPUID.01H:ECX.x2apic
[bit 21]" when kernel_irqchip is off. This patch is to fix it via removing
x2apic feature when kernel_irqchip is off.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 target-i386/cpu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 0f38d1e..3ea6b29 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -2132,6 +2132,10 @@ static void x86_cpu_load_def(X86CPU *cpu, X86CPUDefinition *def, Error **errp)
 
     /* Special cases not set in the X86CPUDefinition structs: */
     if (kvm_enabled()) {
+        if (!kvm_irqchip_in_kernel()) {
+            x86_cpu_change_kvm_default("x2apic", "off");
+        }
+
         x86_cpu_apply_props(cpu, kvm_default_props);
     }
 
-- 
2.1.0

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

* Re: [Qemu-devel] [PULL 0/2] X86 fixes
  2016-03-11 18:47 [Qemu-devel] [PULL 0/2] X86 fixes Eduardo Habkost
  2016-03-11 18:47 ` [Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled Eduardo Habkost
  2016-03-11 18:47 ` [Qemu-devel] [PULL 2/2] kvm: Remove x2apic feature from CPU model when kernel_irqchip is off Eduardo Habkost
@ 2016-03-14 16:21 ` Peter Maydell
  2016-03-14 20:42   ` Eduardo Habkost
  2 siblings, 1 reply; 7+ messages in thread
From: Peter Maydell @ 2016-03-14 16:21 UTC (permalink / raw)
  To: Eduardo Habkost
  Cc: QEMU Developers, Paolo Bonzini, Andreas Färber, Richard Henderson

On 11 March 2016 at 18:47, Eduardo Habkost <ehabkost@redhat.com> wrote:
> The following changes since commit a648c137383d84bc4f95696e5293978d9541a26e:
>
>   Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)
>
> are available in the git repository at:
>
>   git://github.com/ehabkost/qemu.git tags/x86-pull-request
>
> for you to fetch changes up to b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:
>
>   kvm: Remove x2apic feature from CPU model when kernel_irqchip is off (2016-03-11 15:43:48 -0300)
>
> ----------------------------------------------------------------
> X86 fixes
>
> ----------------------------------------------------------------
>
> Denis V. Lunev (1):
>   hyperv: cpu hotplug fix with HyperV enabled
>
> Lan Tianyu (1):
>   kvm: Remove x2apic feature from CPU model when kernel_irqchip is off
>
>  roms/SLOF         | 2 +-
>  roms/openbios     | 2 +-
>  target-i386/cpu.c | 4 ++++
>  target-i386/kvm.c | 1 +
>  4 files changed, 7 insertions(+), 2 deletions(-)

This pull contains submodule updates not mentioned in the
commit messages -- are they intentional ?

thanks
-- PMM

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

* Re: [Qemu-devel] [PULL 0/2] X86 fixes
  2016-03-14 16:21 ` [Qemu-devel] [PULL 0/2] X86 fixes Peter Maydell
@ 2016-03-14 20:42   ` Eduardo Habkost
  0 siblings, 0 replies; 7+ messages in thread
From: Eduardo Habkost @ 2016-03-14 20:42 UTC (permalink / raw)
  To: Peter Maydell
  Cc: QEMU Developers, Paolo Bonzini, Andreas Färber, Richard Henderson

On Mon, Mar 14, 2016 at 04:21:44PM +0000, Peter Maydell wrote:
> On 11 March 2016 at 18:47, Eduardo Habkost <ehabkost@redhat.com> wrote:
> > The following changes since commit a648c137383d84bc4f95696e5293978d9541a26e:
> >
> >   Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)
> >
> > are available in the git repository at:
> >
> >   git://github.com/ehabkost/qemu.git tags/x86-pull-request
> >
> > for you to fetch changes up to b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:
> >
> >   kvm: Remove x2apic feature from CPU model when kernel_irqchip is off (2016-03-11 15:43:48 -0300)
> >
> > ----------------------------------------------------------------
> > X86 fixes
> >
> > ----------------------------------------------------------------
> >
> > Denis V. Lunev (1):
> >   hyperv: cpu hotplug fix with HyperV enabled
> >
> > Lan Tianyu (1):
> >   kvm: Remove x2apic feature from CPU model when kernel_irqchip is off
> >
> >  roms/SLOF         | 2 +-
> >  roms/openbios     | 2 +-
> >  target-i386/cpu.c | 4 ++++
> >  target-i386/kvm.c | 1 +
> >  4 files changed, 7 insertions(+), 2 deletions(-)
> 
> This pull contains submodule updates not mentioned in the
> commit messages -- are they intentional ?

They are not, sorry again. I am submitting a new pull request.

I am adding a hook to my repository so it never happen again.

-- 
Eduardo

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

* Re: [Qemu-devel] [PULL 0/2] x86 fixes
  2016-10-03 19:08 [Qemu-devel] [PULL 0/2] x86 fixes Eduardo Habkost
@ 2016-10-04 11:36 ` Peter Maydell
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2016-10-04 11:36 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Paolo Bonzini, Richard Henderson, QEMU Developers

On 3 October 2016 at 20:08, Eduardo Habkost <ehabkost@redhat.com> wrote:
> The following changes since commit c5d128ffeb5357df1ea3e6de0c13b3d6a09f6064:
>
>   Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20160927' into staging (2016-09-30 23:45:56 +0100)
>
> are available in the git repository at:
>
>   git://github.com/ehabkost/qemu.git tags/x86-pull-request
>
> for you to fetch changes up to 339892d758efb2d0954160d41736a0eac9875d67:
>
>   target-i386: Correct family/model/stepping for Opteron_G3 (2016-10-03 16:06:43 -0300)
>
> ----------------------------------------------------------------
> x86 bug fixes
>
> Fix for a XSAVE regression when using "-cpu host", and a fix on
> the Opteron_G3 CPU model.
>
> ----------------------------------------------------------------

Applied, thanks.

-- PMM

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

* [Qemu-devel] [PULL 0/2] x86 fixes
@ 2016-10-03 19:08 Eduardo Habkost
  2016-10-04 11:36 ` Peter Maydell
  0 siblings, 1 reply; 7+ messages in thread
From: Eduardo Habkost @ 2016-10-03 19:08 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Paolo Bonzini, Richard Henderson, qemu-devel

The following changes since commit c5d128ffeb5357df1ea3e6de0c13b3d6a09f6064:

  Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20160927' into staging (2016-09-30 23:45:56 +0100)

are available in the git repository at:

  git://github.com/ehabkost/qemu.git tags/x86-pull-request

for you to fetch changes up to 339892d758efb2d0954160d41736a0eac9875d67:

  target-i386: Correct family/model/stepping for Opteron_G3 (2016-10-03 16:06:43 -0300)

----------------------------------------------------------------
x86 bug fixes

Fix for a XSAVE regression when using "-cpu host", and a fix on
the Opteron_G3 CPU model.

----------------------------------------------------------------

Eduardo Habkost (1):
  target-i386: Report known CPUID[EAX=0xD,ECX=0]:EAX bits as migratable

Evgeny Yakovlev (1):
  target-i386: Correct family/model/stepping for Opteron_G3

 include/hw/i386/pc.h | 15 +++++++++++++++
 target-i386/cpu.c    | 25 ++++++++++++++-----------
 2 files changed, 29 insertions(+), 11 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-10-04 11:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11 18:47 [Qemu-devel] [PULL 0/2] X86 fixes Eduardo Habkost
2016-03-11 18:47 ` [Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled Eduardo Habkost
2016-03-11 18:47 ` [Qemu-devel] [PULL 2/2] kvm: Remove x2apic feature from CPU model when kernel_irqchip is off Eduardo Habkost
2016-03-14 16:21 ` [Qemu-devel] [PULL 0/2] X86 fixes Peter Maydell
2016-03-14 20:42   ` Eduardo Habkost
2016-10-03 19:08 [Qemu-devel] [PULL 0/2] x86 fixes Eduardo Habkost
2016-10-04 11:36 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.