This patch tries to change hvc_console to not use request_irq/free_irq if
the backend does not use irqs. This allows virtio_console to use hvc_console
without having a linker reference to request_irq/free_irq.
The irq specific code is moved to hvc_irq.c and selected by the drivers that
use irqs
This patch tries to change hvc_console to not use request_irq/free_irq if
the backend does not use irqs. This allows virtio_console to use hvc_console
without having a linker reference to request_irq/free_irq.
The irq specific code is moved to hvc_irq.c and selected by the drivers that
use irqs
This patch exploits the new notifier callbacks of the hvc_console. We can
use the virtio callbacks instead of the polling code.
I also added a small Kconfig change that allows the user to specify the
virtio console in menuconfig.
Signed-off-by: Christian Borntraeger [EMAIL PROTECTED]
---
This patch adds structs for the paravirt clocksource ABI
used by both xen and kvm (pvclock-abi.h).
It also adds some helper functions to read system time and
wall clock time from a paravirtual clocksource (pvclock.[ch]).
They are based on the xen code. They are enabled using
This patch updates the xen guest to use the pvclock structs
and helper functions.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
arch/x86/xen/Kconfig|1 +
arch/x86/xen/time.c | 130 ---
include/xen/interface/xen.h |5 +-
3
This patch updates the kvm host code to use the pvclock structs
and functions, thereby making it compatible with Xen.
The patch also fixes an initialization bug: on SMP systems the
per-cpu has two different locations early at boot and after CPU
bringup. kvmclock must take that in account when
The kvm_* structs are obsoleted by the pvclock_* ones.
Now all users have been switched over and the old structs
can be dropped.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
include/asm-x86/kvm_para.h | 18 --
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git
You sent these patches to kvm-owner, ie. the mailing list owner, and
not the list itself which would be plain kvm.
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
paravirt clock source patches, next round.
There is now a pvclock-abi.h file with the structs and some longish
comments in it and everybody is switched over to use the stuff in
there.
cheers,
Gerd
___
Virtualization mailing list
This patch updates the kvm host code to use the pvclock structs.
It also makes the paravirt clock compatible with Xen.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
arch/x86/kvm/x86.c | 75 ---
include/asm-x86/kvm_host.h |4 ++-
2 files
Gerd Hoffmann wrote:
paravirt clock source patches, next round.
There is now a pvclock-abi.h file with the structs and some longish
comments in it and everybody is switched over to use the stuff in
there.
This all looks pretty good. How do you want this to get into the kernel?
J
Jeremy Fitzhardinge wrote:
Gerd Hoffmann wrote:
paravirt clock source patches, next round.
There is now a pvclock-abi.h file with the structs and some longish
comments in it and everybody is switched over to use the stuff in
there.
This all looks pretty good. How do you want this to get
Gerd Hoffmann wrote:
+/*
+ * These structs MUST NOT be changed.
+ * They are the ABI between hypervisor and guest OS.
+ * Both Xen and KVM are using this.
+ *
+ * pvclock_vcpu_time_info holds the system time and the tsc timestamp
+ * of the last update. So the guest can use the tsc delta to
Gerd Hoffmann wrote:
This patch updates the xen guest to use the pvclock structs
and helper functions.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
arch/x86/xen/Kconfig|1 +
arch/x86/xen/time.c | 130
---
Jeremy Fitzhardinge wrote:
Gerd Hoffmann wrote:
paravirt clock source patches, next round.
There is now a pvclock-abi.h file with the structs and some longish
comments in it and everybody is switched over to use the stuff in
there.
This all looks pretty good. How do you want this to get
This patch updates the kvm host code to use the pvclock structs.
It also makes the paravirt clock compatible with Xen.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
arch/x86/kvm/x86.c | 75 ---
include/asm-x86/kvm_host.h |4 ++-
2 files
The kvm_* structs are obsoleted by the pvclock_* ones.
Now all users have been switched over and the old structs
can be dropped.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
include/asm-x86/kvm_para.h | 18 --
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git
This patch updates the xen guest to use the pvclock structs
and helper functions.
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED]
---
arch/x86/xen/Kconfig|1 +
arch/x86/xen/time.c | 132 ---
include/xen/interface/xen.h |7 +-
3
paravirt clock source patches, next round.
There is now a pvclock-abi.h file with the structs and some longish
comments in it and everybody is switched over to use the stuff in
there.
Some minor tweaks after super-fast review by Jeremy.
The queue is on top of the kvm git tree. The first two
This patch adds structs for the paravirt clocksource ABI
used by both xen and kvm (pvclock-abi.h).
It also adds some helper functions to read system time and
wall clock time from a paravirtual clocksource (pvclock.[ch]).
They are based on the xen code. They are enabled using
This patch updates the kvm host code to use the pvclock structs
and functions, thereby making it compatible with Xen.
The patch also fixes an initialization bug: on SMP systems the
per-cpu has two different locations early at boot and after CPU
bringup. kvmclock must take that in account when
On Tuesday 03 June 2008, Christian Borntraeger wrote:
+/* The hvc device */
+struct hvc_struct *hvc;
+
I guess this should be static, a three letter identifier for a global variable
is not really unique.
Arnd
___
Virtualization mailing
On Tuesday 03 June 2008, Christian Borntraeger wrote:
@@ -42,22 +42,48 @@
*/
#define HVC_ALLOC_TTY_ADAPTERS 8
+struct hvc_struct {
+ spinlock_t lock;
+ int index;
+ struct tty_struct *tty;
+ unsigned int count;
+ int do_wakeup;
+ char *outbuf;
+
On Tuesday 03 June 2008 22:45:22 Christian Borntraeger wrote:
This patch tries to change hvc_console to not use request_irq/free_irq if
the backend does not use irqs. This allows virtio_console to use
hvc_console without having a linker reference to request_irq/free_irq.
Two questions. Is it
24 matches
Mail list logo