2013-05-15 13:17:18

by Victor Miasnikov

[permalink] [raw]
Subject: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: Make Linux guest support optional

Hi!

b)

See in P.S.
CONFIG_PARAVIRT_GUEST in arch/ia64

a)
config-3.10.0-rc1-fullnohzdisabled
==
# CONFIG_HYPERVISOR_GUEST is not set
==

> - select PARAVIRT_GUEST
> + select HYPERVISOR_GUEST

TO Borislav Petkov : first [but not last :-( ] non-upgraded config . . .

TO All:

Please, replace
CONFIG_PARAVIRT_GUEST=y
with
CONFIG_HYPERVISOR_GUEST=y


{=
patch-3.10-rc1
==
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 64630f15f181..0403b51d20ba 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -2,7 +2,7 @@ menu "Microsoft Hyper-V guest support"

config HYPERV
tristate "Microsoft Hyper-V client drivers"
- depends on X86 && ACPI && PCI && X86_LOCAL_APIC
+ depends on X86 && ACPI && PCI && X86_LOCAL_APIC && HYPERVISOR_GUEST
help
Select this option to run Linux as a Hyper-V client operating
system.
==


IMHO, related not only Hyper-V, but XEN, KVM , etc.

( and VMWare
config VMWARE_BALLOON
tristate "VMware Balloon Driver"
- depends on X86
+ depends on X86 && HYPERVISOR_GUEST
)


Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/

P.S.

Is good?

CONFIG_PARAVIRT_GUEST in arch/ia64 :

./linux-3.10-rc1/arch/ia64/include/asm/native/
inst.h
./linux-3.10-rc1/arch/ia64/configs/
xen_domu_defconfig
./linux-3.10-rc1/arch/ia64/include/asm/
hw_irq.h
iosapic.h
paravirt.h

==
. . .
#ifdef CONFIG_PARAVIRT_GUEST

#define PARAVIRT_HYPERVISOR_TYPE_DEFAULT 0
#define PARAVIRT_HYPERVISOR_TYPE_XEN 1
. . .
==


2013-05-15 13:34:09

by Michal Hocko

[permalink] [raw]
Subject: Re: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: Make Linux guest support optional

On Wed 15-05-13 16:17:09, Victor Miasnikov wrote:
> Hi!
>
> b)
>
> See in P.S.
> CONFIG_PARAVIRT_GUEST in arch/ia64
>
> a)
> config-3.10.0-rc1-fullnohzdisabled
> ==
> # CONFIG_HYPERVISOR_GUEST is not set
> ==
>
> >- select PARAVIRT_GUEST
> >+ select HYPERVISOR_GUEST

I might have missed the previous discussion but how does this relate to
the original problem reported to this (https://lkml.org/lkml/2013/5/14/398)
thread?

I have bisected to the faulty patch and reverting it proved to help
(https://lkml.org/lkml/2013/5/15/160)

For record:
$grep HYPERVISOR_GUEST .config
# CONFIG_HYPERVISOR_GUEST is not set
$grep PARAVIRT_GUEST .config
$

[...]
--
Michal Hocko
SUSE Labs

2013-05-15 13:44:12

by Victor Miasnikov

[permalink] [raw]
Subject: Re: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: Make Linux guest support optional


Hi!

>> >- select PARAVIRT_GUEST
>> >+ select HYPERVISOR_GUEST
>
> I might have missed the previous discussion but how does this relate to
> the original problem reported to this (https://lkml.org/lkml/2013/5/14/398)
> thread?

As example:

https://lkml.org/lkml/2013/5/14/398
==
. . .
# CONFIG_HYPERVISOR_GUEST is not set
. . .
==

> For record:
> $grep HYPERVISOR_GUEST .config
> # CONFIG_HYPERVISOR_GUEST is not set


Why not
CONFIG_HYPERVISOR_GUEST=y

?

> $grep PARAVIRT_GUEST .config
> $


Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/

2013-05-15 13:46:59

by Michal Hocko

[permalink] [raw]
Subject: Re: CONFIG_HYPERVISOR_GUEST=y {-- replace -- CONFIG_PARAVIRT_GUEST=y {= { # CONFIG_HYPERVISOR_GUEST is not set } Re: 3.10-rc1 system starts regular boot when waking from s2ram Fw: [PATCH 2/2] x86: Make Linux guest support optional

On Wed 15-05-13 16:44:05, Victor Miasnikov wrote:
>
> Hi!
>
> >>>- select PARAVIRT_GUEST
> >>>+ select HYPERVISOR_GUEST
> >
> >I might have missed the previous discussion but how does this relate to
> >the original problem reported to this (https://lkml.org/lkml/2013/5/14/398)
> >thread?
>
> As example:
>
> https://lkml.org/lkml/2013/5/14/398
> ==
> . . .
> # CONFIG_HYPERVISOR_GUEST is not set
> . . .
> ==
>
> >For record:
> >$grep HYPERVISOR_GUEST .config
> ># CONFIG_HYPERVISOR_GUEST is not set
>
>
> Why not
> CONFIG_HYPERVISOR_GUEST=y

This is unrelated to the issue discussed in this thread.
--
Michal Hocko
SUSE Labs