From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Hollis Blanchard
<hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Subject: Re: [kvm-ppc-devel] [kvm-devel] [PATCH 0 of 2] A couple ifdefs
Date: Wed, 16 Jan 2008 09:24:59 +0000 [thread overview]
Message-ID: <478DCD6B.7020904@linux.vnet.ibm.com> (raw)
In-Reply-To: <478DBA4D.7060408-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Avi Kivity wrote:
> Hollis Blanchard wrote:
>> These small ifdefs are necessary for integration of the PowerPC port.
>>
>>
>
> Only patch 2 of 2 made it.
>
As Hollis should be sleeping right now I resend 1/2 as it arrived on kvm-powerpc-devel
(I hope my mail-app keeps the format this time)
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
original mail
---
# HG changeset patch
# User Hollis Blanchard <hollisb@us.ibm.com>
# Date 1200434310 21600
# Node ID 7fa5947a2da8c0c7424ebdcfaebcae624d6cf015
# Parent ee0c227fe3f6632f4b1b5fde3f7e05c8ea0a4378
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---
2 files changed, 7 insertions(+)
arch/x86/kvm/Kconfig | 5 +++++
virt/kvm/kvm_main.c | 2 ++
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -33,9 +33,13 @@ config KVM
If unsure, say N.
+config KVM_HAS_PIO
+ bool
+
config KVM_INTEL
tristate "KVM for Intel processors support"
depends on KVM
+ select KVM_HAS_PIO
---help---
Provides support for KVM on Intel processors equipped with the VT
extensions.
@@ -43,6 +47,7 @@ config KVM_AMD
config KVM_AMD
tristate "KVM for AMD processors support"
depends on KVM
+ select KVM_HAS_PIO
---help---
Provides support for KVM on AMD processors equipped with the AMD-V
(SVM) extensions.
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -677,8 +677,10 @@ static int kvm_vcpu_fault(struct vm_area
if (vmf->pgoff = 0)
page = virt_to_page(vcpu->run);
+#ifdef CONFIG_KVM_HAS_PIO
else if (vmf->pgoff = KVM_PIO_PAGE_OFFSET)
page = virt_to_page(vcpu->arch.pio_data);
+#endif /* CONFIG_KVM_HAS_PIO */
else
return VM_FAULT_SIGBUS;
get_page(page);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel
WARNING: multiple messages have this Message-ID (diff)
From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Hollis Blanchard
<hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 0 of 2] A couple ifdefs
Date: Wed, 16 Jan 2008 10:24:59 +0100 [thread overview]
Message-ID: <478DCD6B.7020904@linux.vnet.ibm.com> (raw)
In-Reply-To: <478DBA4D.7060408-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Avi Kivity wrote:
> Hollis Blanchard wrote:
>> These small ifdefs are necessary for integration of the PowerPC port.
>>
>>
>
> Only patch 2 of 2 made it.
>
As Hollis should be sleeping right now I resend 1/2 as it arrived on kvm-powerpc-devel
(I hope my mail-app keeps the format this time)
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
original mail
---
# HG changeset patch
# User Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# Date 1200434310 21600
# Node ID 7fa5947a2da8c0c7424ebdcfaebcae624d6cf015
# Parent ee0c227fe3f6632f4b1b5fde3f7e05c8ea0a4378
Signed-off-by: Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
2 files changed, 7 insertions(+)
arch/x86/kvm/Kconfig | 5 +++++
virt/kvm/kvm_main.c | 2 ++
diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -33,9 +33,13 @@ config KVM
If unsure, say N.
+config KVM_HAS_PIO
+ bool
+
config KVM_INTEL
tristate "KVM for Intel processors support"
depends on KVM
+ select KVM_HAS_PIO
---help---
Provides support for KVM on Intel processors equipped with the VT
extensions.
@@ -43,6 +47,7 @@ config KVM_AMD
config KVM_AMD
tristate "KVM for AMD processors support"
depends on KVM
+ select KVM_HAS_PIO
---help---
Provides support for KVM on AMD processors equipped with the AMD-V
(SVM) extensions.
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -677,8 +677,10 @@ static int kvm_vcpu_fault(struct vm_area
if (vmf->pgoff == 0)
page = virt_to_page(vcpu->run);
+#ifdef CONFIG_KVM_HAS_PIO
else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET)
page = virt_to_page(vcpu->arch.pio_data);
+#endif /* CONFIG_KVM_HAS_PIO */
else
return VM_FAULT_SIGBUS;
get_page(page);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-01-16 9:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 21:59 [kvm-ppc-devel] [PATCH 0 of 2] A couple ifdefs Hollis Blanchard
2008-01-15 21:59 ` Hollis Blanchard
2008-01-15 21:59 ` [kvm-ppc-devel] [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so Hollis Blanchard
2008-01-15 21:59 ` [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't need pio_data in kvm_arch_vcpu Hollis Blanchard
2008-01-20 13:15 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1 of 2] Define and use Avi Kivity
2008-01-20 13:15 ` [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't need pio_data in kvm_arch_vcpu Avi Kivity
[not found] ` <47934974.2020107-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-24 12:59 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1 of 2] Define and use Carsten Otte
2008-01-24 12:59 ` [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't need pio_data in kvm_arch_vcpu Carsten Otte
[not found] ` <47988BA1.80507-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2008-01-24 13:14 ` [kvm-ppc-devel] [kvm-devel] [PATCH 1 of 2] Define and use Avi Kivity
2008-01-24 13:14 ` [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't need pio_data in kvm_arch_vcpu Avi Kivity
2008-01-15 21:59 ` [kvm-ppc-devel] [PATCH 2 of 2] Use CONFIG_PREEMPT_NOTIFIERS around Hollis Blanchard
2008-01-15 21:59 ` [PATCH 2 of 2] Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier Hollis Blanchard
2008-01-16 8:08 ` [kvm-ppc-devel] [kvm-devel] [PATCH 2 of 2] Use Avi Kivity
2008-01-16 8:08 ` [PATCH 2 of 2] Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier Avi Kivity
[not found] ` <478DBB95.6030005-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-16 16:23 ` [kvm-ppc-devel] [kvm-devel] [PATCH 2 of 2] Use Hollis Blanchard
2008-01-16 16:23 ` [PATCH 2 of 2] Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier Hollis Blanchard
2008-01-16 8:03 ` [kvm-ppc-devel] [kvm-devel] [PATCH 0 of 2] A couple ifdefs Avi Kivity
2008-01-16 8:03 ` Avi Kivity
[not found] ` <478DBA4D.7060408-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-16 9:24 ` Christian Ehrhardt [this message]
2008-01-16 9:24 ` Christian Ehrhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478DCD6B.7020904@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.