On 12/28/2011 08:54 AM, Liu ping fan wrote:
> >>
> >> struct kvm_vcpu {
> >> struct kvm *kvm;
> >> + struct list_head list;
> >> #ifdef CONFIG_PREEMPT_NOTIFIERS
> >> struct preempt_notifier preempt_notifier;
> >> #endif
> >> @@ -251,12 +252,14 @@ struct kvm {
> >> struct
On 12/27/2011 10:38 AM, Liu Ping Fan wrote:
> From: Liu Ping Fan
>
> Currently, vcpu can be destructed only when kvm instance destroyed.
> Change this to vcpu's destruction before kvm instance, so vcpu MUST
> and CAN be destroyed before kvm's destroy.
>
> Signed-off-by: Liu Ping Fan
> ---
> arch
On 12/28/2011 11:53 AM, Avi Kivity wrote:
> On 12/27/2011 10:38 AM, Liu Ping Fan wrote:
> > From: Liu Ping Fan
> >
> > Currently, vcpu can be destructed only when kvm instance destroyed.
> > Change this to vcpu's destruction before kvm instance, so vcpu MUST
> > and CAN be destroyed before kvm's d
(2011/12/28 18:54), Avi Kivity wrote:
On 12/28/2011 11:53 AM, Avi Kivity wrote:
On 12/27/2011 10:38 AM, Liu Ping Fan wrote:
From: Liu Ping Fan
Currently, vcpu can be destructed only when kvm instance destroyed.
Change this to vcpu's destruction before kvm instance, so vcpu MUST
and CAN be dest
(2011/12/28 15:54), Liu ping fan wrote:
You are introducing kvm_arch_vcpu_zap().
Then, apart from the "zap" naming issue I mentioned last time,
Yes, I will correct "zap", as you said, its meaning is quite different
from destroy. :-)
what about other architectures than x86?
Have not conside
On 12/28/2011 12:19 PM, Takuya Yoshikawa wrote:
>> Oops, that's only needed when the unplug API is introduced.
>>
>
>
> I think it is OK to to add such an API later on, but I really want
> the author to write the plan in the changelog.
It was in fact in the beginning of the thread.
> I am not ob
On 12/21/2011 11:42 PM, Alex Williamson wrote:
Including rationale for design, example usage and API description.
Signed-off-by: Alex Williamson
---
Documentation/vfio.txt | 352
1 files changed, 352 insertions(+), 0 deletions(-)
create mod
>> diff --git a/qemu-kvm.h b/qemu-kvm.h
>> index 2bd5602..8c6c2ea 100644
>> --- a/qemu-kvm.h
>> +++ b/qemu-kvm.h
>> @@ -260,6 +260,7 @@ extern int kvm_irqchip;
>> extern int kvm_pit;
>> extern int kvm_pit_reinject;
>> extern unsigned int kvm_shadow_memory;
>> +extern int tsc_deadline_timer;
>>
Hi
On 12/27/2011 03:25 AM, Ajith Adapa wrote:
Hi,
I am new to KVM stuff and had very BASIC (might be lame even) doubts
regarding KVM.
As per the various diagrams I have gone through in internet my
understanding is KVM is an hypervisor on top of which all VMs run.
In case of FULL VIRTUALIZATIO
On 2011-12-28 18:35, Liu, Jinsong wrote:
>>> diff --git a/qemu-kvm.h b/qemu-kvm.h
>>> index 2bd5602..8c6c2ea 100644
>>> --- a/qemu-kvm.h
>>> +++ b/qemu-kvm.h
>>> @@ -260,6 +260,7 @@ extern int kvm_irqchip;
>>> extern int kvm_pit;
>>> extern int kvm_pit_reinject;
>>> extern unsigned int kvm_shado
>From 5afecc308bc25c7fd8d124e7557f08fb067d6caa Mon Sep 17 00:00:00 2001
From: Liu Jinsong
Date: Thu, 29 Dec 2011 01:45:45 +0800
Subject: [PATCH 1/2] Define KVM_CAP_TSC_DEADLINE_TIMER
Signed-off-by: Liu, Jinsong
Signed-off-by: Jan Kiszka
---
linux-headers/linux/kvm.h |1 +
1 files changed,
>From 3a78adf8006ec6189bfe2f55f7ae213e75bf3815 Mon Sep 17 00:00:00 2001
From: Liu Jinsong
Date: Thu, 29 Dec 2011 05:28:12 +0800
Subject: [PATCH 2/2] Expose tsc deadline timer cpuid to guest
Depend on several factors:
1. Considering live migration, user enable/disable tsc deadline timer;
2. If gue
David is right, KVM is a type 2 hypervisor, it will never own the hardware
100%, as a type 1 hypervisor would. KVM leverages the hosting OS, RHEL for
example, for example RHEL/RHEV variant. Paravirtualization allows KVM, via its
design and associated virtual instance driver design, to gain a d
This will be used by postcopy.
Signed-off-by: Isaku Yamahata
---
arch_init.c |4 ++--
migration.h |2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index d4c92b0..1947396 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -112,7 +112,7 @@ static i
Those constants will be also used by postcopy.
Signed-off-by: Isaku Yamahata
---
arch_init.c |7 ---
arch_init.h |7 +++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 1947396..4ede5ad 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -
Signed-off-by: Isaku Yamahata
---
arch_init.c | 25 ++---
arch_init.h |9 +
2 files changed, 27 insertions(+), 7 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 5ad6956..d55e39c 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -335,21 +335,22 @@ int ram_s
Signed-off-by: Isaku Yamahata
---
cpu-all.h |2 ++
exec.c| 51 +--
2 files changed, 31 insertions(+), 22 deletions(-)
diff --git a/cpu-all.h b/cpu-all.h
index 9d78715..0244f7a 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -496,6 +496,8 @@ ext
Signed-off-by: Isaku Yamahata
---
arch_init.c | 82 +++---
arch_init.h |1 +
2 files changed, 45 insertions(+), 38 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 9bc313e..982c846 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1
This will be used later by postcopy migration.
Signed-off-by: Isaku Yamahata
---
hw/hw.h |1 +
savevm.c |5 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index 0b481ba..d508b4e 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -80,6 +80,7 @@ int qemu_get_byt
Add enable/disable postcopy mode. No dynamic test yet.
Signed-off-by: Isaku Yamahata
---
configure | 12
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 640e815..440fa9e 100755
--- a/configure
+++ b/configure
@@ -190,6 +190,7 @@ opengl="
Introduce a new method to drain the buffer of QEMUBufferedFile.
When postcopy migration, buffer size can increase unboundedly.
To keep the buffer size reasonably small, introduce the method to
wait for buffer to drain.
Signed-off-by: Isaku Yamahata
---
buffered_file.c | 20 +++-
Signed-off-by: Isaku Yamahata
---
linux-headers/linux/umem.h | 83
1 files changed, 83 insertions(+), 0 deletions(-)
create mode 100644 linux-headers/linux/umem.h
diff --git a/linux-headers/linux/umem.h b/linux-headers/linux/umem.h
new file mode 10
Introduce MigrationParams for parameters of migration.
Signed-off-by: Isaku Yamahata
---
block-migration.c |8
hw/hw.h |2 +-
migration.c | 16 +---
migration.h |8 ++--
qemu-common.h |1 +
savevm.c | 12
This will be used by postcopy migration.
Signed-off-by: Isaku Yamahata
---
migration.c |4 ++--
migration.h |2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/migration.c b/migration.c
index 412fdfe..057dde7 100644
--- a/migration.c
+++ b/migration.c
@@ -166,7 +166,7 @
This patch prepares for postcopy livemigration.
It introduces -postcopy option and its internal flag, migration_postcopy.
It introduces -postcopy-flags for chaging the behavior of incoming postcopy
mainly for benchmark/debug.
Signed-off-by: Isaku Yamahata
postcopy: introduce -postcopy-flags opti
Intro
=
This patch series implements postcopy live migration.[1]
As discussed at KVM forum 2011, dedicated character device is used for
distributed shared memory between migration source and destination.
Now we can discuss/benchmark/compare with precopy. I believe there are
much rooms for impro
Signed-off-by: Isaku Yamahata
---
arch_init.c | 28 +---
migration.h |1 +
2 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 982c846..249b440 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -261,9 +261,24 @@ void ram_save_
Signed-off-by: Isaku Yamahata
---
arch_init.c | 21 ++---
migration.h |1 +
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index d55e39c..9bc313e 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -243,6 +243,19 @@ void sort_ram_list(voi
Added -p option to migrate command for postcopy mode and
introduce postcopy parameter for migration to indicate that postcopy mode is
enabled.
Add -n option for postcopy migration which indicates disabling background
transfer.
Signed-off-by: Isaku Yamahata
---
hmp-commands.hx | 12 --
Signed-off-by: Isaku Yamahata
---
exec-obsolete.h |1 +
exec.c |4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/exec-obsolete.h b/exec-obsolete.h
index 34b9fc5..8f69f1c 100644
--- a/exec-obsolete.h
+++ b/exec-obsolete.h
@@ -25,6 +25,7 @@
#ifndef CONFIG_U
Those will be used by postcopy.
Signed-off-by: Isaku Yamahata
---
hw/hw.h |3 +++
savevm.c |6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index efa04d1..0b481ba 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -77,6 +77,9 @@ void qemu_put_be32(QEMUFile
This is Linux kernel driver for qemu/kvm postcopy live migration.
This is used by qemu/kvm postcopy live migration patch.
TODO:
- Consider FUSE/CUSE option
So far several mmap patches for FUSE/CUSE are floating around. (their
purpose isn't different from our purpose, though). They haven't merg
This is a character device to hook page access.
The page fault in the area is reported to another user process by
this chardriver. Then, the process fills the page contents and
resolves the page fault.
Signed-off-by: Isaku Yamahata
---
drivers/char/Kconfig |9 +
drivers/char/Makefile |1
Signed-off-by: Isaku Yamahata
---
mm/memcontrol.c |1 +
mm/shmem.c |1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index b63f5f7..85530fc 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2807,6 +2807,7 @@ int mem_cgroup_cac
Signed-off-by: Isaku Yamahata
---
scripts/update-linux-headers.sh |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 9d2a4bc..2afdd54 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-li
Signed-off-by: Isaku Yamahata
---
arch_init.c | 67 +-
arch_init.h |1 +
2 files changed, 39 insertions(+), 29 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 249b440..bc53092 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -3
Introduce RAM_SAVE_VERSION_ID to represent version_id for ram save format.
Signed-off-by: Isaku Yamahata
---
arch_init.c |2 +-
arch_init.h |2 ++
vl.c|4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 4ede5ad..5ad6956 1006
On Thu, Dec 29, 2011 at 10:26:16AM +0900, Isaku Yamahata wrote:
> UMEM_DEV_LIST: list created umem devices
> UMEM_DEV_REATTACH: re-attach the created umem device
> UMEM_DEV_LIST and UMEM_DEV_REATTACH are used when
> the process that services page fault disappears or
In short, when you running qemu and enabled KVM, kvm only gives
virtual cpu and gets the commands from your vm and give them to VT.
KVm does not have other hardware. The hardware are provided by qemu
or other vms.
> -Original Message-
> From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@
Do you mean that you want to run a kernel in another VM? I think it
is not possible.
I have checked it. In a qemu with kvm enabled,
# cat /proc/cpuinfo | grep ^flags
flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx
fxsr sse sse2 up pni popcnt hypervisor
It does not have "
40 matches
Mail list logo