* KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
@ 2015-01-22 9:19 Paul Bolle
2015-01-22 11:46 ` Paolo Bonzini
2015-01-22 13:57 ` Paolo Bonzini
0 siblings, 2 replies; 7+ messages in thread
From: Paul Bolle @ 2015-01-22 9:19 UTC (permalink / raw)
To: Mario Smarduch
Cc: Valentin Rothberg, Christoffer Dall, Gleb Natapov, Paolo Bonzini,
kvm, linux-kernel
Mario,
Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page
logging") is included in today's linux-next (ie, next-20150122). I
noticed because a script I use to check linux-next spotted a problem
with it.
That commit added a Kconfig symbol HAVE_KVM_ARCH_DIRTY_LOG_PROTECT. But
nothing in linux-next uses that symbol. Why was it added?
Thanks,
Paul Bolle
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 9:19 KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT? Paul Bolle
@ 2015-01-22 11:46 ` Paolo Bonzini
2015-01-22 17:47 ` Mario Smarduch
2015-01-22 13:57 ` Paolo Bonzini
1 sibling, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2015-01-22 11:46 UTC (permalink / raw)
To: Paul Bolle, Mario Smarduch
Cc: Valentin Rothberg, Christoffer Dall, Gleb Natapov, kvm, linux-kernel
On 22/01/2015 10:19, Paul Bolle wrote:
> Mario,
>
> Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page
> logging") is included in today's linux-next (ie, next-20150122). I
> noticed because a script I use to check linux-next spotted a problem
> with it.
>
> That commit added a Kconfig symbol HAVE_KVM_ARCH_DIRTY_LOG_PROTECT. But
> nothing in linux-next uses that symbol. Why was it added?
That's a bug. I'll fix it when pulling from the kvm-arm tree.
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 9:19 KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT? Paul Bolle
2015-01-22 11:46 ` Paolo Bonzini
@ 2015-01-22 13:57 ` Paolo Bonzini
2015-01-22 14:49 ` Paul Bolle
1 sibling, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2015-01-22 13:57 UTC (permalink / raw)
To: Paul Bolle, Mario Smarduch
Cc: Valentin Rothberg, Christoffer Dall, Gleb Natapov, kvm, linux-kernel
On 22/01/2015 10:19, Paul Bolle wrote:
> Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page
> logging") is included in today's linux-next (ie, next-20150122). I
> noticed because a script I use to check linux-next spotted a problem
> with it.
>
> That commit added a Kconfig symbol HAVE_KVM_ARCH_DIRTY_LOG_PROTECT. But
> nothing in linux-next uses that symbol. Why was it added?
Ah, there are two Kconfig symbols added by mistake.
+config HAVE_KVM_ARCH_DIRTY_LOG_PROTECT
+ bool
+
+config KVM_GENERIC_DIRTYLOG_READ_PROTECT
+ bool
Christoffer, can you fix that in kvm-arm and also the other mistake that
Paul reported?
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 13:57 ` Paolo Bonzini
@ 2015-01-22 14:49 ` Paul Bolle
2015-01-22 15:32 ` Paolo Bonzini
0 siblings, 1 reply; 7+ messages in thread
From: Paul Bolle @ 2015-01-22 14:49 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Mario Smarduch, Valentin Rothberg, Christoffer Dall,
Gleb Natapov, kvm, linux-kernel
On Thu, 2015-01-22 at 14:57 +0100, Paolo Bonzini wrote:
> On 22/01/2015 10:19, Paul Bolle wrote:
> > Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page
> > logging") is included in today's linux-next (ie, next-20150122). I
> > noticed because a script I use to check linux-next spotted a problem
> > with it.
> >
> > That commit added a Kconfig symbol HAVE_KVM_ARCH_DIRTY_LOG_PROTECT. But
> > nothing in linux-next uses that symbol. Why was it added?
>
> Ah, there are two Kconfig symbols added by mistake.
>
> +config HAVE_KVM_ARCH_DIRTY_LOG_PROTECT
> + bool
> +
> +config KVM_GENERIC_DIRTYLOG_READ_PROTECT
> + bool
This one is actually used (so my 800 line perl monster didn't bark):
$ git grep -n KVM_GENERIC_DIRTYLOG_READ_PROTECT next-20150122
next-20150122:arch/arm/kvm/Kconfig:27: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
next-20150122:arch/arm64/kvm/Kconfig:30: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
next-20150122:arch/x86/kvm/Kconfig:42: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
next-20150122:virt/kvm/Kconfig:47:config KVM_GENERIC_DIRTYLOG_READ_PROTECT
next-20150122:virt/kvm/kvm_main.c:998:#ifdef CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT
> Christoffer, can you fix that in kvm-arm and also the other mistake that
> Paul reported?
Thanks,
Paul Bolle
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 14:49 ` Paul Bolle
@ 2015-01-22 15:32 ` Paolo Bonzini
2015-01-23 9:48 ` Christoffer Dall
0 siblings, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2015-01-22 15:32 UTC (permalink / raw)
To: Paul Bolle
Cc: Mario Smarduch, Valentin Rothberg, Christoffer Dall,
Gleb Natapov, kvm, linux-kernel
On 22/01/2015 15:49, Paul Bolle wrote:
>> > Ah, there are two Kconfig symbols added by mistake.
>> >
>> > +config HAVE_KVM_ARCH_DIRTY_LOG_PROTECT
>> > + bool
>> > +
>> > +config KVM_GENERIC_DIRTYLOG_READ_PROTECT
>> > + bool
> This one is actually used (so my 800 line perl monster didn't bark):
> $ git grep -n KVM_GENERIC_DIRTYLOG_READ_PROTECT next-20150122
> next-20150122:arch/arm/kvm/Kconfig:27: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> next-20150122:arch/arm64/kvm/Kconfig:30: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> next-20150122:arch/x86/kvm/Kconfig:42: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> next-20150122:virt/kvm/Kconfig:47:config KVM_GENERIC_DIRTYLOG_READ_PROTECT
> next-20150122:virt/kvm/kvm_main.c:998:#ifdef CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT
>
Yes, the mistake is adding two symbols instead of one. :)
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 11:46 ` Paolo Bonzini
@ 2015-01-22 17:47 ` Mario Smarduch
0 siblings, 0 replies; 7+ messages in thread
From: Mario Smarduch @ 2015-01-22 17:47 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Paul Bolle, Valentin Rothberg, Christoffer Dall, Gleb Natapov,
kvm, linux-kernel
On 01/22/2015 03:46 AM, Paolo Bonzini wrote:
>
>
> On 22/01/2015 10:19, Paul Bolle wrote:
>> Mario,
>>
>> Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page
>> logging") is included in today's linux-next (ie, next-20150122). I
>> noticed because a script I use to check linux-next spotted a problem
>> with it.
>>
>> That commit added a Kconfig symbol HAVE_KVM_ARCH_DIRTY_LOG_PROTECT. But
>> nothing in linux-next uses that symbol. Why was it added?
>
> That's a bug. I'll fix it when pulling from the kvm-arm tree.
>
> Paolo
>
Paolo,
thanks, left over from early iteration.
- Mario
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?
2015-01-22 15:32 ` Paolo Bonzini
@ 2015-01-23 9:48 ` Christoffer Dall
0 siblings, 0 replies; 7+ messages in thread
From: Christoffer Dall @ 2015-01-23 9:48 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Paul Bolle, Mario Smarduch, Valentin Rothberg, Gleb Natapov, kvm,
linux-kernel
On Thu, Jan 22, 2015 at 04:32:37PM +0100, Paolo Bonzini wrote:
>
>
> On 22/01/2015 15:49, Paul Bolle wrote:
> >> > Ah, there are two Kconfig symbols added by mistake.
> >> >
> >> > +config HAVE_KVM_ARCH_DIRTY_LOG_PROTECT
> >> > + bool
> >> > +
> >> > +config KVM_GENERIC_DIRTYLOG_READ_PROTECT
> >> > + bool
> > This one is actually used (so my 800 line perl monster didn't bark):
> > $ git grep -n KVM_GENERIC_DIRTYLOG_READ_PROTECT next-20150122
> > next-20150122:arch/arm/kvm/Kconfig:27: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> > next-20150122:arch/arm64/kvm/Kconfig:30: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> > next-20150122:arch/x86/kvm/Kconfig:42: select KVM_GENERIC_DIRTYLOG_READ_PROTECT
> > next-20150122:virt/kvm/Kconfig:47:config KVM_GENERIC_DIRTYLOG_READ_PROTECT
> > next-20150122:virt/kvm/kvm_main.c:998:#ifdef CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT
> >
>
> Yes, the mistake is adding two symbols instead of one. :)
>
Yes, I'm fixing it up with this patch:
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c
index eb94597..74aeaba 100644
--- a/arch/arm/kvm/mmu.c
+++ b/arch/arm/kvm/mmu.c
@@ -1042,8 +1042,8 @@ static void stage2_wp_range(struct kvm *kvm, phys_addr_t addr, phys_addr_t end)
/*
* Release kvm_mmu_lock periodically if the memory region is
* large. Otherwise, we may see kernel panics with
- * CONFIG_DETECT_HUNG_TASK, CONFIG_LOCK_DETECTOR,
- * CONFIG_LOCK_DEP. Additionally, holding the lock too long
+ * CONFIG_DETECT_HUNG_TASK, CONFIG_LOCKUP_DETECTOR,
+ * CONFIG_LOCKDEP. Additionally, holding the lock too long
* will also starve other vCPUs.
*/
if (need_resched() || spin_needbreak(&kvm->mmu_lock))
diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig
index 314950c..50d1106 100644
--- a/virt/kvm/Kconfig
+++ b/virt/kvm/Kconfig
@@ -41,8 +41,5 @@ config KVM_VFIO
config HAVE_KVM_ARCH_TLB_FLUSH_ALL
bool
-config HAVE_KVM_ARCH_DIRTY_LOG_PROTECT
- bool
-
config KVM_GENERIC_DIRTYLOG_READ_PROTECT
bool
Thanks,
-Christoffer
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-01-23 9:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 9:19 KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT? Paul Bolle
2015-01-22 11:46 ` Paolo Bonzini
2015-01-22 17:47 ` Mario Smarduch
2015-01-22 13:57 ` Paolo Bonzini
2015-01-22 14:49 ` Paul Bolle
2015-01-22 15:32 ` Paolo Bonzini
2015-01-23 9:48 ` Christoffer Dall
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.