On Wed, 7 Apr 2021 at 18:55, Michael Tokarev wrote:
>
> Hi!
>
> It looks like this commit:
>
> commit 87fa7f3e98a1310ef1ac1900e7ee7f9610a038bc
> Author: Thomas Gleixner
> Date: Wed Jul 8 21:51:54 2020 +0200
>
> x86/kvm: Move context tracking where it belongs
>
> Context tracking for K
On Thu, 8 Apr 2021 at 21:19, Thomas Gleixner wrote:
>
> On Tue, Apr 06 2021 at 21:47, Sean Christopherson wrote:
> > On Tue, Apr 06, 2021, Michael Tokarev wrote:
> >> broke kvm guest cpu time accounting - after this commit, when running
> >> qemu-system-x86_64 -enable-kvm, the guest time (in /proc
On Thu, 8 Apr 2021 at 21:19, Thomas Gleixner wrote:
>
> On Tue, Apr 06 2021 at 21:47, Sean Christopherson wrote:
> > On Tue, Apr 06, 2021, Michael Tokarev wrote:
> >> broke kvm guest cpu time accounting - after this commit, when running
> >> qemu-system-x86_64 -enable-kvm, the guest time (in /proc
On Wed, 7 Apr 2021 at 18:55, Michael Tokarev wrote:
>
> Hi!
>
> It looks like this commit:
>
> commit 87fa7f3e98a1310ef1ac1900e7ee7f9610a038bc
> Author: Thomas Gleixner
> Date: Wed Jul 8 21:51:54 2020 +0200
>
> x86/kvm: Move context tracking where it belongs
>
> Context tracking for K
On Mon, 15 Jul 2019 at 17:16, Paolo Bonzini wrote:
>
> On 15/07/19 03:28, Wanpeng Li wrote:
> > From: Wanpeng Li
> >
> > Allow guest reads CORE cstate when exposing host CPU power management
> > capabilities
> > to the guest. PKG cstate is restrict
From: Wanpeng Li
Adds PV_SCHED_YIELD CPUID feature bit.
Cc: Eduardo Habkost
Cc: Paolo Bonzini
Cc: Radim Krčmář
Signed-off-by: Wanpeng Li
---
Note: kvm part is merged
v1 -> v2:
* use bit 13 instead of bit 12 since bit 12 has user now
target/i386/cpu.c | 2 +-
1 file changed, 1 insert
From: Wanpeng Li
Adds PV_SCHED_YIELD CPUID feature bit.
Cc: Eduardo Habkost
Cc: Paolo Bonzini
Cc: Radim Krčmář
Signed-off-by: Wanpeng Li
---
Note: kvm part is merged
v1 -> v2:
* use bit 13 instead of bit 12 since bit 12 has user now
target/i386/cpu.c | 2 +-
1 file changed, 1 insert
From: Wanpeng Li
Adds PV_SCHED_YIELD CPUID feature bit.
Signed-off-by: Wanpeng Li
---
target/i386/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 5f07d68..f4c4b6b 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
From: Wanpeng Li
Allow guest reads CORE cstate when exposing host CPU power management
capabilities
to the guest. PKG cstate is restricted to avoid a guest to get the whole
package
information in multi-tenant scenario.
Cc: Eduardo Habkost
Cc: Paolo Bonzini
Cc: Radim Krčmář
Signed-off-by
From: Wanpeng Li
The CPUID.01H:ECX[bit 3] ought to mirror the value of the MSR
IA32_MISC_ENABLE MWAIT bit and as userspace has control of them
both, it is userspace's job to configure both bits to match on
the initial setup.
Cc: Eduardo Habkost
Cc: Paolo Bonzini
Cc: Radim Krčmář
S
On Fri, 19 May 2017 at 16:10, Jay Zhou wrote:
>
> Hi Paolo and Wanpeng,
>
> On 2017/5/17 16:38, Wanpeng Li wrote:
> > 2017-05-17 15:43 GMT+08:00 Paolo Bonzini :
> >>> Recently, I have tested the performance before migration and after
> >>> migrat
Hi Eduardo,
On Tue, 3 Jul 2018 at 05:43, Eduardo Habkost wrote:
>
> On Mon, Jul 02, 2018 at 06:22:51PM +0800, Wanpeng Li wrote:
> > From: Wanpeng Li
> >
> > Adds PV_SEND_IPI CPUID feature bit.
> >
>
> Thanks!
>
> Paolo, Radim: can I assume the bit is a
Ping,
On Tue, 3 Jul 2018 at 05:43, Eduardo Habkost wrote:
>
> On Mon, Jul 02, 2018 at 06:22:51PM +0800, Wanpeng Li wrote:
> > From: Wanpeng Li
> >
> > Adds PV_SEND_IPI CPUID feature bit.
> >
>
> Thanks!
>
> Paolo, Radim: can I assume the bit is already
: Wanpeng Li
---
v1 -> v2:
* add the original author
accel/kvm/kvm-all.c | 56 +++
hw/timer/mc146818rtc.c| 8 +++
include/exec/memattrs.h | 1 +
include/exec/memory.h | 5 +
include/sysemu/kvm.h | 8 +++
linux-head
%92.72% 67.15us ( +- 7.93% )
After patch:
IO Port Access Samples Samples% Time%Avg time
0x70:POUT1750945.42%42.08% 6.37us ( +- 20.37% )
Thanks to Peng Hao's initial patch.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Eduardo Habkost
Signed-off-by: Wanpeng Li
---
On Wed, 20 Jun 2018 at 10:41, Michael S. Tsirkin wrote:
>
> On Wed, Jun 20, 2018 at 08:46:10AM +0800, Wanpeng Li wrote:
> > On Wed, 20 Jun 2018 at 08:07, Michael S. Tsirkin wrote:
> > >
> > > On Tue, Jun 19, 2018 at 05:07:46PM -0500, Eric Blake wrote:
> &g
From: Wanpeng Li
Adds PV_SEND_IPI CPUID feature bit.
Cc: Paolo Bonzini
Cc: Eduardo Habkost
Cc: Radim Krčmář
Cc: Vitaly Kuznetsov
Signed-off-by: Wanpeng Li
---
target/i386/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index
u-pm=on' reads reasonably well.
>
> Yes but host resource what? I feel it says nothing at all about what
> one can expect to find in this flag.
>
> > About the only other noun I could think of would be '-feature cpu-pm=on'.
>
> If we have nothing at all to say about what is grouping these things,
> we don't need a new flag. We can make it a machine property.
>
> It's user's hint that some host resource is dedicated to a VM.
The commit 633711e82 (kvm: rename KVM_HINTS_DEDICATED to
KVM_HINTS_REALTIME) should be reverted according to several threads
discussion I think.
Regards,
Wanpeng Li
2018-05-12 5:57 GMT+08:00 Michael S. Tsirkin :
> On Wed, Apr 18, 2018 at 09:09:19AM +0800, Wanpeng Li wrote:
>> 2018-04-18 2:08 GMT+08:00 Michael S. Tsirkin :
>> > On Tue, Apr 17, 2018 at 01:24:15AM -0700, Wanpeng Li wrote:
>> >> From: Wanpeng Li
>>
2018-04-18 4:59 GMT+08:00 Eduardo Habkost :
> On Tue, Apr 17, 2018 at 01:24:15AM -0700, Wanpeng Li wrote:
[.../...]
>>
>> +if (env->features[FEAT_KVM_HINTS] & KVM_HINTS_DEDICATED) {
>> +int disable_exits = kvm_check_extension(cs->kvm_state
2018-04-18 2:08 GMT+08:00 Michael S. Tsirkin :
> On Tue, Apr 17, 2018 at 01:24:15AM -0700, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> This patch adds support for KVM_CAP_X86_DISABLE_EXITS. Provides userspace
>> with
>> per-VM capability(KVM_CAP_X86_DISABLE_
From: Wanpeng Li
This patch adds support for KVM_CAP_X86_DISABLE_EXITS. Provides userspace with
per-VM capability(KVM_CAP_X86_DISABLE_EXITS) to not intercept MWAIT/HLT/PAUSE
in order that to improve latency in some workloads.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Eduardo Habkost
Signed
From: Wanpeng Li
This patch adds support for KVM_CAP_X86_DISABLE_EXITS. Provides userspace with
per-VM capability(KVM_CAP_X86_DISABLE_EXITS) to not intercept MWAIT/HLT/PAUSE
in order that to improve latency in some workloads.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Eduardo Habkost
Signed
utoenable_flags field, that
> can be used to prevent FEAT_KVM_HINTS bits to be enabled
> automatically.
>
> Reviewed-by: Paolo Bonzini
> Signed-off-by: Eduardo Habkost
Thanks for the patch, Eduardo!
Tested-by: Wanpeng Li
Regards,
Wanpeng Li
> ---
> target/i386/cpu.c
Hi Paolo,
2018-03-27 3:43 GMT+08:00 Eduardo Habkost :
> On Sun, Mar 25, 2018 at 11:33:01AM +0800, Wanpeng Li wrote:
>> 2018-03-24 4:18 GMT+08:00 Eduardo Habkost :
>> > On Fri, Mar 16, 2018 at 07:36:42AM -0700, Wanpeng Li wrote:
>> >> From: Wanpeng Li
>>
2018-03-24 4:18 GMT+08:00 Eduardo Habkost :
> On Fri, Mar 16, 2018 at 07:36:42AM -0700, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> This patch adds support for KVM_CAP_X86_DISABLE_EXITS. Provides userspace
>> with
>> per-VM capability(KVM_CAP_X86_DISABLE_EXITS)
ts = kvm_check_extension(cs->kvm_state,
> KVM_CAP_X86_DISABLE_EXITS);
>
> ERROR: line over 90 characters
> #58: FILE: target/i386/kvm.c:1009:
> +if (kvm_vm_enable_cap(cs->kvm_state, KVM_CAP_X86_DISABLE_EXITS, 0,
> disable_exits)) {
>
> total: 1 errors, 1 warnings, 36 lines
From: Wanpeng Li
This patch adds support for KVM_CAP_X86_DISABLE_EXITS. Provides userspace with
per-VM capability(KVM_CAP_X86_DISABLE_EXITS) to not intercept MWAIT/HLT/PAUSE
in order that to improve latency in some workloads.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Eduardo Habkost
Signed
2018-03-09 22:16 GMT+08:00 Eduardo Habkost :
> On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit
>> to determine if they run on dedicated vCPUs, allowing optimi
Ping,
2018-02-09 22:15 GMT+08:00 Wanpeng Li :
> From: Wanpeng Li
>
> Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit
> to determine if they run on dedicated vCPUs, allowing optimizations such
> as usage of qspinlocks.
>
> Cc: Paolo Bonzini
>
>>>
>>> Is there any plan for this patch?
>>>
>>> Or May I send a updated version based on yours? @Alex?
>> Oh, did I drop the ball on this one? If that's the case, sure, go ahead.
> Hi, it is probably best to implement this feature based on the
&g
2018-02-09 22:31 GMT+08:00 Eduardo Habkost :
> On Fri, Feb 09, 2018 at 06:15:25AM -0800, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> Add KVM_HINTS_DEDICATED performance hint, guest checks this feature bit
>> to determine if they run on dedicated vCPUs, allowing optimi
2018-02-09 16:41 GMT+08:00 Paolo Bonzini :
> On 08/02/2018 10:44, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> Add PV_DEDICATED hint cpuid feature bit.
>
> Please add a new feature word, since this is not a PV feature but more
> like a performance hint.
Do
2018-02-09 20:46 GMT+08:00 Eduardo Habkost :
> On Fri, Feb 09, 2018 at 08:24:26PM +0800, Wanpeng Li wrote:
>> 2018-02-09 19:46 GMT+08:00 Eduardo Habkost :
>> > On Fri, Feb 09, 2018 at 09:41:41AM +0100, Paolo Bonzini wrote:
>> >> On 08/02/2018 19:12, Eduardo Habkost
2018-02-09 19:46 GMT+08:00 Eduardo Habkost :
> On Fri, Feb 09, 2018 at 09:41:41AM +0100, Paolo Bonzini wrote:
>> On 08/02/2018 19:12, Eduardo Habkost wrote:
>> > On Thu, Feb 08, 2018 at 05:44:20PM +0800, Wanpeng Li wrote:
>> >> From: Wanpeng Li
>> >>
>
2018-02-09 2:12 GMT+08:00 Eduardo Habkost :
> On Thu, Feb 08, 2018 at 05:44:20PM +0800, Wanpeng Li wrote:
>> From: Wanpeng Li
>>
>> Add PV_DEDICATED hint cpuid feature bit.
>>
> [...]
>> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
>> index d70954b.
From: Wanpeng Li
Add PV_DEDICATED hint cpuid feature bit.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Eduardo Habkost
Signed-off-by: Wanpeng Li
---
target/i386/cpu.c | 4
target/i386/cpu.h | 3 +++
2 files changed, 7 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index
2017-11-10 15:45 GMT+08:00 Wanpeng Li :
> From: Wanpeng Li
>
> Adds PV_TLB_FLUSH CPUID feature bit.
>
> Cc: Paolo Bonzini
> Cc: Radim Krčmář
> Cc: Richard Henderson
> Cc: Eduardo Habkost
> Signed-off-by: Wanpeng Li
> ---
> target/i386/cpu.c | 2 +-
>
From: Wanpeng Li
Adds PV_TLB_FLUSH CPUID feature bit.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Wanpeng Li
---
target/i386/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
2017-11-07 14:12 GMT+08:00 Alexey Kardashevskiy :
> On 07/11/17 17:02, Wanpeng Li wrote:
>> Hi Alexey,
>> 2017-11-07 13:46 GMT+08:00 Alexey Kardashevskiy :
>>> On 07/11/17 01:08, Paolo Bonzini wrote:
>>>> On 06/11/2017 13:18, Wanpeng Li wrote:
>>&g
Hi Alexey,
2017-11-07 13:46 GMT+08:00 Alexey Kardashevskiy :
> On 07/11/17 01:08, Paolo Bonzini wrote:
>> On 06/11/2017 13:18, Wanpeng Li wrote:
>>> 2017-11-06 20:02 GMT+08:00 Paolo Bonzini :
>>>> On 06/11/2017 12:59, Fam Zheng wrote:
>>>>>&g
2017-11-06 22:08 GMT+08:00 Paolo Bonzini :
> On 06/11/2017 13:18, Wanpeng Li wrote:
>> 2017-11-06 20:02 GMT+08:00 Paolo Bonzini :
>>> On 06/11/2017 12:59, Fam Zheng wrote:
>>>>>> Could you point out the patchset for the fix?
>>>>> B
ld have been fragmented heap. The core file, unlike the
> RSS, includes all the mmaped memory (e.g. from shared libraries) that
> has never been used.
>
> For example, all the Ceph/Gluster/PulseAudio/SPICE/whatever libraries
> are included in the core file but likely are not in the RSS.
Do you mean not use Memory API will avoid the fragmented heap?
Regards,
Wanpeng Li
2017-11-06 17:41 GMT+08:00 Paolo Bonzini :
> On 06/11/2017 10:11, Wanpeng Li wrote:
>> Hi all,
>>
>> qemu core dump, max_core="unlimited", dump_guest_core=0, kill -11 pid
>> to generate a qemu core file, the Rss of qemu itself is ~40MB, the
>> core file i
Hi all,
qemu core dump, max_core="unlimited", dump_guest_core=0, kill -11 pid
to generate a qemu core file, the Rss of qemu itself is ~40MB, the
core file is almost ~40MB in centos 6.x, but ~400MB in cents 7.x, any
idea?
Regards,
Wanpeng Li
been merged in kvm/qemu?
Regards,
Wanpeng Li
>
> Removed: xop, fma4, tbm
>
> Cc: Paolo Bonzini
> Cc: Richard Henderson
> Cc: Eduardo Habkost
> Cc: Tom Lendacky
> Signed-off-by: Brijesh Singh
> ---
>
> Changes since v2:
> * limit the xlevel to 0x800a
&g
clear INIT in pending_events
> considering migration, just at level >= KVM_PUT_RESET_STATE,
> add KVM_VCPUEVENT_VALID_SMM in events.flags.I think it is better to
> modify in qemu.
Do it in qemu just avoids to trigger the bug instead of fixing it. Why
we touch INIT pen
From: Wanpeng Li
This patch adds async page fault flag to KVM_GET/SET_VCPU_EVENTS interface.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Signed-off-by: Wanpeng Li
---
v2 -> v3:
* nested_apf for vcpu events
v1 -> v2:
* reuse the pad for async_page_fault
* cleanup coding style
linux-heade
2017-06-22 0:28 GMT+08:00 Radim Krčmář :
> 2017-06-20 20:14-0700, Wanpeng Li:
>> From: Wanpeng Li
>>
>> This patch adds async pf flag to KVM_GET/SET_VCPU_EVENTS interface.
>>
>> Signed-off-by: Wanpeng Li
>> ---
>> diff --git a/linux-header
From: Wanpeng Li
This patch adds async page fault flag to KVM_GET/SET_VCPU_EVENTS interface.
Cc: Paolo Bonzini
Cc: Radim Krčmář
Signed-off-by: Wanpeng Li
---
v1 -> v2:
* reuse the pad for async_page_fault
* cleanup coding style
linux-headers/asm-x86/kvm.h | 3 ++-
target/i386/cp
From: Wanpeng Li
This patch adds async pf flag to KVM_GET/SET_VCPU_EVENTS interface.
Signed-off-by: Wanpeng Li
---
linux-headers/asm-x86/kvm.h | 2 ++
target/i386/cpu.h | 1 +
target/i386/kvm.c | 6 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/linux
etup:
>
> 1) set up 1G hugetlbfs hugepages and use those for the guest's memory
>
> 2) test both without and with the above patch.
>
In addition, we can compare /sys/kernel/debug/kvm/largepages w/ and
w/o the patch. IIRC, /sys/kernel/debug/kvm/largepages will drop during
live migration, it will keep a small value if live migration fails and
w/o "lazy collapse small sptes into large sptes" codes, however, it
will increase gradually if w/ the "lazy collapse small sptes into
large sptes" codes.
Regards,
Wanpeng Li
# 9.52% of all iTLB
> cache hits (16.67%)
> 1,152,784 iTLB-loads
> (33.32%)
>
> 10.000703078 seconds time elapsed
> **
Could you comment out the original "lazy collapse small sptes into
la
2017-05-11 22:18 GMT+08:00 Zhoujian (jay) :
> Hi Wanpeng,
>
>> 2017-05-11 21:43 GMT+08:00 Wanpeng Li :
>> > 2017-05-11 20:24 GMT+08:00 Paolo Bonzini :
>> >>
>> >>
>> >> On 11/05/2017 14:07, Zhoujian (jay) wrote:
>> >>> -
2017-05-11 21:43 GMT+08:00 Wanpeng Li :
> 2017-05-11 20:24 GMT+08:00 Paolo Bonzini :
>>
>>
>> On 11/05/2017 14:07, Zhoujian (jay) wrote:
>>> -* Scan sptes if dirty logging has been stopped, dropping those
>>> -* which can be collapse
LOG_DIRTY_PAGES) &&
>> - !(new->flags & KVM_MEM_LOG_DIRTY_PAGES))
>> - kvm_mmu_zap_collapsible_sptes(kvm, new);
This is an unlikely branch(unless guest live migration fails and
continue to run on the source machine) instead of hot path, do you
ha
> If you are correlating the clocks, then yes.
>
> Older Linux guests get upset (marking the TSC clocksource unstable
> because the watchdog checks TSC vs kvmclock), but there is a workaround for it
> in newer guests
> (kvmclock interface to notify watchdog to not complain).
Could
;>
>> This adds a new field to FeatureWordInfo: migratable_flags, which
>> will make those features be reported as migratable even if they
>> don't have a property name defined.
>>
>> Reported-by: Wanpeng Li
>> Cc: Paolo Bonzini
>> Signed-off-by: Ed
2016-09-29 1:05 GMT+08:00 Eduardo Habkost :
> On Wed, Sep 28, 2016 at 04:36:14PM +0800, Wanpeng Li wrote:
[...]
>
> We still need to report unknown xstate components as unmigratable
> (otherwise -cpu host will enable them automatically). See the fix
> I submitted:
> [PATCH] t
From: Wanpeng Li
Commit 96193c22a "target-i386: Move xsave component mask to features array"
leverages features array to handle XCR0 processor state component bits,
however, it introduces a regression:
warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 0]
warnin
2016-09-28 15:54 GMT+08:00 Paolo Bonzini :
[...]
> I think the right place to add the test is x86_cpu_get_migratable_flags.
I just sent out v2 to handle this, thanks for pointing out.
Regards,
Wanpeng Li
From: Wanpeng Li
Commit 96193c22a "target-i386: Move xsave component mask to features array"
leverages features array to handle XCR0 processor state component bits,
however, it introduces a regression:
warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 0]
warnin
From: Wanpeng Li
The qemu will crash when info ioapic through hmp if irqchip
is split. Below message is splat:
KVM_GET_IRQCHIP failed: Unknown error -6
This patch fix it by dumping the ioapic state from the qemu
emulated ioapic if irqchip is split.
Cc: Paolo Bonzini
Cc: Richard Henderson
From: Wanpeng Li
Introduce a new APIC macro to replace APIC_COMMON macro in
hw/intc/apic.c in order to capture access LAPIC in qemu
even if LAPIC is emulated in kvm.
Suggested-by: Paolo Bonzini
Reviewed-by: Michael S. Tsirkin
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Michael S. Tsirkin
Cc
by TYPE_APIC.
Will do, thanks for your review.
Regards,
Wanpeng Li
From: Wanpeng Li
Introduce a new APIC macro to replace APIC_COMMON macro in
hw/intc/apic.c in order to capture access LAPIC in qemu
even if LAPIC is emulated in kvm.
Suggested-by: Paolo Bonzini
Cc: Paolo Bonzini
Cc: Radim Krčmář
Cc: Michael S. Tsirkin
Cc: Eduardo Habkost
Signed-off-by
From: Wanpeng Li
Add -kernel_irqchip=split
./x86-run x86/eventinj.flat
qemu-system-x86_64 -enable-kvm -machine kernel_irqchip=split -cpu host
-device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc
none -serial stdio -device pci-testdev -kernel x86/eventinj.flat
enabling apic
ic: fix touch LAPIC when irqchip is split...
>> ERROR: suspect code indent for conditional statements (4, 9)
>> #90: FILE: hw/i386/pc.c:164:
>> +if (!kvm_irqchip_in_kernel()) {
>> + intno = apic_get_interrupt(cpu->apic_state);
> ^
> Should be 4 spaces here.
>
>>
>> ERROR: suspect code indent for conditional statements (9, 13)
>> #92: FILE: hw/i386/pc.c:166:
>> + if (intno >= 0) {
>> + return intno;
>
> Then this and later will be indented back by 1 column.
You are right, thanks Fam.
Regards,
Wanpeng Li
From: Wanpeng Li
Add -kernel_irqchip=split
./x86-run x86/eventinj.flat
qemu-system-x86_64 -enable-kvm -machine kernel_irqchip=split -cpu host
-device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc
none -serial stdio -device pci-testdev -kernel x86/eventinj.flat
enabling apic
#x27;
>> perception than total time, however, this feature will increase downtime
>> when acquire the benefit of reducing total time, maybe it will be more
>> acceptable if there is no downside for downtime.
>>
>> Regards,
>> Wanpeng Li
>
> In theory, there is no fac
ncrease
downtime when acquire the benefit of reducing total time, maybe it
will be more acceptable if there is no downside for downtime.
Regards,
Wanpeng Li
2015-11-26 16:34 GMT+08:00 Andrey Smetanin :
>
>
> On 11/26/2015 08:28 AM, Wanpeng Li wrote:
>>
>> 2015-11-25 23:20 GMT+08:00 Andrey Smetanin :
>>>
>>> Per Hyper-V specification (and as required by Hyper-V-aware guests),
>>> SynIC provides 4 per-v
2015-11-26 16:34 GMT+08:00 Andrey Smetanin :
>
>
> On 11/26/2015 08:28 AM, Wanpeng Li wrote:
>>
>> 2015-11-25 23:20 GMT+08:00 Andrey Smetanin :
>>>
>>> Per Hyper-V specification (and as required by Hyper-V-aware guests),
>>> SynIC provides 4 per-v
ynIC message slot and triggering the corresponding
> synthetic interrupt.
Could you post a link for this specification?
Regards,
Wanpeng Li
R_CRASH in this patchset. :(
Regards,
Wanpeng Li
in power states (which
we do not even emulate IIRC). In that case, the OS is under risk of
sleeping forever, thus need to look for a different wakeup source.
HPET will always be the default broadcast event device I think.
Regards,
Wanpeng Li
Live-migration or VM pausing are external effects on al
Add xsaves related definition, it also adds corresponding part
to kvm_get/put, and vmstate.
Signed-off-by: Wanpeng Li
---
v1 -> v2:
* use a subsection instead of bumping the version number.
target-i386/cpu.h | 2 ++
target-i386/kvm.c | 15 +++
target-i386/machine.c |
Add xsaves related definition, it also adds corresponding part
to kvm_get/put, and vmstate.
Signed-off-by: Wanpeng Li
---
v1 -> v2:
* use a subsection instead of bumping the version number.
target-i386/cpu.h | 2 ++
target-i386/kvm.c | 15 +++
target-i386/machine.c |
Add xsaves related definition, it also add corresponding part to
kvm_get/put, and vmstate.
Signed-off-by: Wanpeng Li
---
target-i386/cpu.h | 2 ++
target-i386/kvm.c | 15 +++
target-i386/machine.c | 3 ++-
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a
desired
when several cooperating threads/task is running in guest.
Is there a plane for this work?
Please refer to gang scheduler.
Regards,
Wanpeng Li
Thanks,
Zhang Haoyu
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kerne
c NUMA
balancing) that either the policy for schednuma or autonuma can be
rebased on implemented by Mel has already merged.
Regards,
Wanpeng Li
>
>Thanks,
>Wanlong Gao
>
>
>
>> Hi,
>>
>> We just met a problem of QEMU memory allocation.
>> Here is the de
On Thu, Nov 08, 2012 at 01:36:09PM +0800, Wanpeng Li wrote:
>This series aggressively refactors the PC machine initialization to be more
>modelled and less ad-hoc. The highlights of this series are:
>
>1) Things like -m and -bios-name are now device model properties
>
>2) The i4
convert IDE as piix3 proper QOM child.
IDE creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/i440fx.c |6 ++
hw/ide.h |6 --
hw/ide
convert PIT as piix3 proper QOM child.
PIT creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/i8254.c |2 +-
hw/i8254_internal.h
child device in the PIIX3 ::init
function.
Anthony Liguori (3):
convert RTC as piix3 proper QOM child
convert HPET as piix3 proper QOM child
convert PIT as piix3 proper QOM child
Wanpeng Li (7):
convert PCSPK as piix3 proper QOM child
convert PORT92 as piix3 proper QOM child
convert I8042 as
convert PORT92 as piix3 proper QOM child.
PORT92 creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/pc.c| 25 -
hw/pc.h|3 +++
hw/piix3
convert HPET as piix3 proper QOM child.
HPET creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/hpet.c | 35
just made things
worse. Making things proper objects and using composition is the right way
to share common devices.
By pulling these files back together, we can start to fix some of this mess.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/i386/Makefile.objs |1
convert IOAPIC as piix3 proper QOM child.
IOAPIC creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/ioapic.c |2 +-
hw/ioapic.h |2 --
hw
convert VMMOUSE as piix3 proper QOM child.
VMMOUSE creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/pc.c | 15 ++-
hw/piix3.c | 10 ++
hw
convert VMPORT as piix3 proper QOM child.
VMPORT creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/pc.c |1 -
hw/pc.h |5 -
hw/piix3.c | 11
convert i8042 as piix3 proper QOM child.
I8042 creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/pc.c|9 ++---
hw/pckbd.c | 24 +---
hw
convert PCSPK as piix3 proper QOM child.
PCSPK creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Wanpeng Li
---
hw/pcspk.c | 19 +--
hw/pcspk.h | 19
convert RTC as piix3 proper QOM child.
RTC creation for the PIIX3 is done by calling object_init() with
qdev_init() being called for each child device in the PIIX3 ::init
function.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/mc146818rtc.c | 29
Take advantage of Andreas's pci-host patchset, add instance_init function
to fully implement convert pci-host to QOM.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/pci_host.c |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/hw/pci_host.c
This series aggressively refactors the PC machine initialization to be more
modelled and less ad-hoc. The highlights of this series are:
1) Things like -m and -bios-name are now device model properties
2) The i440fx and piix3 are now modelled in a thorough fashion
3) i440fx_init is trivialized
On Mon, Jul 23, 2012 at 02:57:20PM +0200, Andreas Färber wrote:
>Am 23.07.2012 14:35, schrieb Wanpeng Li:
>> From: Anthony Liguori
>>
>> makes pci_host a proper QOM type.
>>
>> Changelog:
>> * against Andreas pci_host branch
>> * make host bridge Typ
at the PMC is contained within the i440fx which we will now reflect in
composition in the next few changesets.
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/i386/Makefile.objs |2 +-
hw/i440fx.c | 434 +++
hw/i440fx.h
From: Anthony Liguori
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/i386/Makefile.objs |1 -
hw/pc.c | 695 +
hw/pc.h | 46 +---
hw/pc_piix.c | 661
From: Anthony Liguori
makes pci_host a proper QOM type.
Changelog:
* against Andreas pci_host branch
* make host bridge TypeInfos const
* use PCI_HOST_BRIDGE() where appropriate
Signed-off-by: Anthony Liguori
Signed-off-by: Wanpeng Li
---
hw/i440fx.c |6 +++---
hw/pc.c |2
1 - 100 of 139 matches
Mail list logo