Re: mmu_notifiers: turn off lockdep around mm_take_all_locks

2009-07-07 Thread Linus Torvalds
On Tue, 7 Jul 2009, Peter Zijlstra wrote: > > Another issue, at about >=256 vmas we'll overflow the preempt count. So > disabling lockdep will only 'fix' this for a short while, until you've > bloated beyond that ;-) We would? I don't think so. Sure, we'd "overflow" into the softirq bits, but

Re: [GIT PULL v2] Native Linux KVM tool for v3.1

2011-07-27 Thread Linus Torvalds
On Mon, Jul 25, 2011 at 10:27 AM, Pekka Enberg wrote: > > Here's the same pull request with a small fixlet for a compile-time problem > reported by Ingo Molnar. Ok, having thought this over, I'm going to skip the KVM tool merge this merge window. You'll need to convince me it's really worthwhile,

Re: Fix refcounting in hugetlbfs quota handling

2011-08-11 Thread Linus Torvalds
On Wed, Aug 10, 2011 at 11:40 PM, David Gibson wrote: > > This patch, therefore, stores a pointer to the inode instead of the > address_space in the page private data for hugepages.  More > importantly it correctly adjusts the reference count on the inodes > when they're added to the page private

Re: [GIT PULL] KVM fixes for 3.5-rc6

2012-07-13 Thread Linus Torvalds
Missing diffstat. Please please *please* always make sure you have diffstats, because I really want to know that what I'm pulling matches what you *think* that I'm pulling. And the diffstat isn't just for me - it hopefully really makes you look at the whole "this is what I'm asking Linus to pull" t

Re: [GIT PULL] KVM fixes for 3.5-rc6

2012-07-13 Thread Linus Torvalds
On Fri, Jul 13, 2012 at 8:45 AM, Linus Torvalds wrote: > Missing diffstat. Please please *please* always make sure you have > diffstats, because I really want to know that what I'm pulling matches > what you *think* that I'm pulling. And the diffstat isn't just for me

Re: [GIT PULL] KVM fixes for 3.5-rc6

2012-07-13 Thread Linus Torvalds
On Fri, Jul 13, 2012 at 11:28 AM, Thomas Gleixner wrote: > > We already discussed to let the irq chip (in this case MSI) tell the > core that it does not need the extra oneshot handling. That way the > code which requests an threaded irq with the NULL primary handler > works on both MSI and normal

Re: [GIT PULL] KVM updates for the 3.6 merge window

2012-07-24 Thread Linus Torvalds
Ok, this caused conflicts with the s390 and ppc trees. I think I fixed them correctly, but the respective arch people really should take a look. Linus On Mon, Jul 23, 2012 at 2:12 AM, Avi Kivity wrote: > Linus, please pull from the repo and tag at: > > git://git.kernel.org/pu

Re: [GIT PULL (PATCH 0/4)] VFIO driver for v3.6

2012-07-30 Thread Linus Torvalds
On Mon, Jul 30, 2012 at 4:17 PM, Alex Williamson wrote: > > I'm pretty anxious to find out as well. Linus, ping, any thoughts on > including this in 3.6? Thanks, I just pulled it, but then I unpulled again when I realized it's not a signed tag and it's on github. Please, people. Do tagged rele

Re: [GIT PULL] KVM fixes for 3.6-rc3

2012-08-23 Thread Linus Torvalds
On Thu, Aug 23, 2012 at 12:30 AM, Marcelo Tosatti wrote: > > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git master > > To receive the following KVM bug fixes: I'm not seeing what you claim is there. This commit seems to be missing: forgot to push? > Avi Kivity (1): > KV

Re: [PATCH 00/13] [PATCH RFC] Paravirtualized ticketlocks

2011-09-02 Thread Linus Torvalds
On Thu, Sep 1, 2011 at 5:54 PM, Jeremy Fitzhardinge wrote: > > The inner part of ticket lock code becomes: >        inc = xadd(&lock->tickets, inc); >        inc.tail &= ~TICKET_SLOWPATH_FLAG; > >        for (;;) { >                unsigned count = SPIN_THRESHOLD; > >                do { >        

Re: [PATCH 00/13] [PATCH RFC] Paravirtualized ticketlocks

2011-09-02 Thread Linus Torvalds
On Fri, Sep 2, 2011 at 1:07 PM, Jeremy Fitzhardinge wrote: > > I don't know whether that fastpath code is small enough to consider > inlining everywhere? No. There's no point in inlining something that ends up containing a conditional function call: gcc will have to effectively save/restore regi

Re: [GIT PULL] KVM fix for 3.1-rc5

2011-09-06 Thread Linus Torvalds
On Mon, Sep 5, 2011 at 2:42 AM, Avi Kivity wrote: > Linus, please pull from > >  git://github.com/avikivity/kvm.git kvm-updates/3.1 > > to receive a fix for a build failure due to a missing instruction size > suffix in inline assembly. Again, please give me a warm and fuzzy feeling that this is r

Re: [GIT PULL] KVM fix for 3.1-rc5

2011-09-06 Thread Linus Torvalds
On Tue, Sep 6, 2011 at 6:19 PM, Josh Boyer wrote: > > Maybe asking for some extra warm fuzzies from now on wouldn't be a > horrible idea as general practice. I think that realistically we should definitely look at our practices, but at the same time, I personally do put a lot of trust in "human r

Re: [Xen-devel] [PATCH 00/10] [PATCH RFC V2] Paravirtualized ticketlocks

2011-09-28 Thread Linus Torvalds
On Tue, Sep 27, 2011 at 9:44 AM, Jeremy Fitzhardinge wrote: > > I guess it comes down to throwing myself on the efficiency of some kind > of fence instruction.  I guess an lfence would be sufficient; is that > any more efficient than a full mfence?  At least I can make it so that > its only presen

Re: [Xen-devel] [PATCH 00/10] [PATCH RFC V2] Paravirtualized ticketlocks

2011-09-28 Thread Linus Torvalds
On Wed, Sep 28, 2011 at 8:55 AM, Jan Beulich wrote: > >> just use "lock xaddw" there too. > > I'm afraid that's not possible, as that might carry from the low 8 bits > into the upper 8 ones, which must be avoided. Oh damn, you're right. So I guess the "right" way to do things is with cmpxchg, but

Re: [Xen-devel] [PATCH 00/10] [PATCH RFC V2] Paravirtualized ticketlocks

2011-09-28 Thread Linus Torvalds
On Wed, Sep 28, 2011 at 9:47 AM, Jeremy Fitzhardinge wrote: > > Could do something like: > >        if (ticket->head >= 254) >                prev = xadd(&ticket->head_tail, 0xff02); >        else >                prev = xadd(&ticket->head_tail, 0x0002); > > to compensate for the overflow. Oh wow

Re: [Xen-devel] [PATCH 00/10] [PATCH RFC V2] Paravirtualized ticketlocks

2011-09-28 Thread Linus Torvalds
On Wed, Sep 28, 2011 at 11:08 AM, Stephan Diestelhorst wrote: > > I must have missed the part when this turned into the propose-the- > craziest-way-that-this-still-works.contest :) So doing it just with the "lock addb" probably works fine, but I have to say that I personally shudder at the "surro

Re: [GIT PULL] KVM updates for Linux 3.5

2012-05-24 Thread Linus Torvalds
On Tue, May 22, 2012 at 6:08 AM, Avi Kivity wrote: > Linus, please pull the KVM updates for the 3.5 cycle from Ok. The way I resolved a the x86 kvm_para.h conflict, I suspect it is now being *unnecessarily* careful about doing the CPUID thing, and I think that the "cpuid_level < 0" check that cam

Re: [PATCH 2/2] i387: split up into exported and internal interfaces

2012-02-28 Thread Linus Torvalds
On Tue, Feb 28, 2012 at 3:21 AM, Avi Kivity wrote: > > Can you elaborate on what you don't like in the kvm code (apart from "it > does virtualiztion")? It doesn't fit any of the patterns of the x87 save/restore code, and I don't know what it does. It does clts on its own, in random places withou

Re: [PATCH 2/2] i387: split up into exported and internal interfaces

2012-02-28 Thread Linus Torvalds
On Tue, Feb 28, 2012 at 9:21 AM, Avi Kivity wrote: > > What you described is the slow path. Indeed. I'd even call it the "glacial and stupid" path. >The fast path is > >  void kvm_load_guest_fpu(struct kvm_vcpu *vcpu) >  { >      if (vcpu->guest_fpu_loaded) >          return; > > If we're emulat

Re: [PATCH 2/2] i387: split up into exported and internal interfaces

2012-02-28 Thread Linus Torvalds
On Tue, Feb 28, 2012 at 9:37 AM, Linus Torvalds wrote: > > So where's the comment about why you actually own and control CR0.TS, > and nobody else does? So what I think KVM should strive for (but I really don't know the code, so maybe there are good reasons why it is impossibl

Re: [PATCH 2/2] i387: split up into exported and internal interfaces

2012-02-28 Thread Linus Torvalds
On Tue, Feb 28, 2012 at 10:09 AM, Avi Kivity wrote: > > This is done by preempt notifiers.  Whenever a task switch happens we > push the guest fpu state into memory (if loaded) and let the normal > stuff happen.  So the if we had a task switch during instruction > emulation, for example, then we'd

Re: [PATCH 2/2] i387: split up into exported and internal interfaces

2012-02-28 Thread Linus Torvalds
On Tue, Feb 28, 2012 at 11:06 AM, Avi Kivity wrote: > > No, the scheduler saves the state into task_struct.  I need it saved > into the vcpu structure.  We have two fpu states, the user state, and > the guest state.  APIs that take a task_struct as a parameter, or > reference current implicitly, a

Re: [PATCH RFC V6 2/11] x86/ticketlock: don't inline _spin_unlock when using paravirt spinlocks

2012-03-21 Thread Linus Torvalds
On Wed, Mar 21, 2012 at 3:21 AM, Raghavendra K T wrote: > From: Jeremy Fitzhardinge > > The code size expands somewhat, and its probably better to just call > a function rather than inline it. > > Signed-off-by: Jeremy Fitzhardinge > Signed-off-by: Raghavendra K T > --- >  arch/x86/Kconfig    

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-22 Thread Linus Torvalds
On Thu, Mar 22, 2012 at 5:10 PM, Benjamin Herrenschmidt wrote: > > That means that everything gets constantly rebased, and it makes life > very much harder for us working with this. Ben, thanks for pointing this out. I will not be pulling this tree at all. It's pure and utter shit, and I wonder

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-28 Thread Linus Torvalds
On Tue, Mar 27, 2012 at 9:02 PM, Benjamin Herrenschmidt wrote: > > Linus, what's your feeling here ? I'd really like to have the bulk of > the powerpc updates this time around, they already missed the previous > merge window due to maintainers taking too long to deal with their > inbox :-) If the

Re: [GIT PULL] KVM fixes for 3.4-rc1

2012-04-07 Thread Linus Torvalds
On Thu, Apr 5, 2012 at 9:40 AM, Avi Kivity wrote: > Linus, please pull a few fixes from > >  git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/3.4 > > A bunch of powerpc KVM fixes, a guest and a host RCU fix (unrelated), > and a small build fix. Grr. static inline int pull_function(vo

Re: [GIT PULL] KVM updates for the 2.6.38 merge window

2011-01-10 Thread Linus Torvalds
On Mon, Jan 10, 2011 at 1:21 AM, Avi Kivity wrote: > > - asynchronous page faults, which allow a guest to continue processing > interrupts even when its memory is being paged in; in the case of a Linux > 2.6.38+ guest, it will receive a notification that the host is servicing a > page fault, and m

Re: [GIT PULL] KVM updates for the 2.6.38 merge window

2011-01-11 Thread Linus Torvalds
On Tue, Jan 11, 2011 at 1:25 AM, Avi Kivity wrote: > > What are your issues with the patch? My issues are mainly two-fold: - I think "MINOR" is a totally idiotic and meaningless term. It has no technical meaning. Why would IO be special? Is it because of deadlock concerns with filesystem or blo

Re: [GIT PULL] KVM updates for the 2.6.38 merge window

2011-01-12 Thread Linus Torvalds
On Wed, Jan 12, 2011 at 12:33 PM, Rik van Riel wrote: > > Now that we have FAULT_FLAG_ALLOW_RETRY, the async > pagefault patches can be a little smaller. I suspect you do still want a new page flag, to say that FAULT_FLAG_ALLOW_RETRY shouldn't actually wait for the page that it allows retry for.

Re: [GIT PULL] KVM updates for the 2.6.38 merge window

2011-01-13 Thread Linus Torvalds
On Thu, Jan 13, 2011 at 4:53 AM, Gleb Natapov wrote: > > I implemented get_user_pages_nowait() on top of your patch. In my testing > it works as expected when used inside KVM. Does this looks OK to you? It looks reasonable, although I suspect the subtle behavior wrt the mmap_sem means that you sh

Re: [GIT PULL] KVM updates for the 3.9 merge window

2013-02-24 Thread Linus Torvalds
On Wed, Feb 20, 2013 at 5:17 PM, Marcelo Tosatti wrote: > > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/kvm-3.9-1 > > to receive the KVM updates for the 3.9 merge window [..] Ok, particularly the s390 people should check me resolution of the conflicts, since they inclu

Re: [PULL] vhost: cleanups and fixes

2013-05-02 Thread Linus Torvalds
On Thu, May 2, 2013 at 12:33 PM, Michael S. Tsirkin wrote: > > I prefer not rebasing, Good. > will play with git to see why > does request-pull get me a wrong diffstat and how > to trick it into doing the right thing. > Maybe merging my branch into master will do this. No, don

Re: [PULLv2] vhost: cleanups and fixes

2013-05-02 Thread Linus Torvalds
On Thu, May 2, 2013 at 1:11 PM, Michael S. Tsirkin wrote: > Hi Linus, > This is exactly same code as my previous pull sent earlier, the diffstat > was wrong however, I did a merge with master which fixed that. See my other email. THIS IS NOT A VALID REASON TO DO A BACK-MERGE! Extraneous merge co

Re: [PULLv2] vhost: cleanups and fixes

2013-05-02 Thread Linus Torvalds
I pulled the previous tag, which didn't have the merge. And what the heck is up with "virtualizat...@lists.osdl.org"? That thing doesn't work. "osdl.org"? Did we suddenly take a delorean back a decade? Nonworking list cc removed. Linus -- To unsubscribe from this list: send the lin

Re: [GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Linus Torvalds
On Thu, May 23, 2013 at 3:41 AM, Gleb Natapov wrote: > > MAINTAINERS |7 ++-- > arch/mips/include/asm/kvm.h | 55 > --- > arch/mips/include/uapi/asm/kvm.h | 55 > +++ > arch/mips/kvm/kvm_tl

Re: [GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Linus Torvalds
On Thu, May 23, 2013 at 10:13 AM, Gleb Natapov wrote: > > Ugh, yes "-M" and "--summary" were missing. I updated the script now. Thanks! > Should I regenerate pull request? No, I pulled, Linus -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message t

Re: [GIT PULL] KVM changes for 3.12

2013-09-04 Thread Linus Torvalds
On Tue, Sep 3, 2013 at 5:10 AM, Gleb Natapov wrote: > > This pull request adds tlb_gather_mmu() caller in S390 code, but 2b047252 > in your tree added another parameter to the function, so the patch bellow > have to be applied during merge to resolve the conflicts. The patch was > used in linux-ne

Re: [GIT PULL] KVM changes for 3.16-rc4

2014-07-01 Thread Linus Torvalds
On Tue, Jul 1, 2014 at 3:44 AM, Paolo Bonzini wrote: > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus I've pulled this, but I was pretty close to saying "screw this shit". Look at commit 9a630d15f16d, and pray tell me why those kinds of commit logs are excusable? That commit m

Re: [GIT PULL] KVM changes for 3.17-rc4

2014-09-05 Thread Linus Torvalds
On Fri, Sep 5, 2014 at 3:16 AM, Paolo Bonzini wrote: > > are available in the git repository at: > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus Nothing new there. Forgot to push out, or perhaps to use "-f" to overwrite the previous tag of the same name? Linus -- To

Re: [PATCH 01/17] mm: gup: add FOLL_TRIED

2014-10-03 Thread Linus Torvalds
This needs more explanation than that one-liner comment. Make the commit message explain why the new FOLL_TRIED flag exists. Linus On Fri, Oct 3, 2014 at 10:07 AM, Andrea Arcangeli wrote: > From: Andres Lagar-Cavilla > > Reviewed-by: Radim Krčmář > Signed-off-by: Andres Lagar-Cavilla >

Re: [PATCH 04/17] mm: gup: make get_user_pages_fast and __get_user_pages_fast latency conscious

2014-10-03 Thread Linus Torvalds
On Fri, Oct 3, 2014 at 10:07 AM, Andrea Arcangeli wrote: > This teaches gup_fast and __gup_fast to re-enable irqs and > cond_resched() if possible every BATCH_PAGES. This is disgusting. Many (most?) __gup_fast() users just want a single page, and the stupid overhead of the multi-page version is

Re: [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-03 Thread Linus Torvalds
On Fri, Oct 3, 2014 at 10:08 AM, Andrea Arcangeli wrote: > > Overall this looks a fairly small change to the rmap code, notably > less intrusive than the nonlinear vmas created by remap_file_pages. Considering that remap_file_pages() was an unmitigated disaster, and -mm has a patch to remove it e

Re: [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-07 Thread Linus Torvalds
On Mon, Oct 6, 2014 at 12:41 PM, Andrea Arcangeli wrote: > > Of course if somebody has better ideas on how to resolve an anonymous > userfault they're welcome. So I'd *much* rather have a "write()" style interface (ie _copying_ bytes from user space into a newly allocated page that gets mapped) t

Re: [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-07 Thread Linus Torvalds
On Tue, Oct 7, 2014 at 10:19 AM, Andrea Arcangeli wrote: > > I see what you mean. The only cons I see is that we couldn't use then > recv(tmp_addr, PAGE_SIZE), remap_anon_pages(faultaddr, tmp_addr, > PAGE_SIZE, ..) and retain the zerocopy behavior. Or how could we? > There's no recvfile(userfault

Re: compiler bug gcc4.6/4.7 with ACCESS_ONCE and workarounds

2014-11-10 Thread Linus Torvalds
On Mon, Nov 10, 2014 at 12:18 PM, Christian Borntraeger wrote: > > Now: I can reproduces belows miscompile on gcc46 and gcc 47 > gcc 45 seems ok, gcc 48 is fixed. This makes blacklisting > a bit hard, especially since it is not limited to s390, but > covers all architectures. > In essence ACCESS_

Re: compiler bug gcc4.6/4.7 with ACCESS_ONCE and workarounds

2014-11-11 Thread Linus Torvalds
On Tue, Nov 11, 2014 at 1:16 PM, Christian Borntraeger wrote: > > Are you ok with the patch as is in kvm/next for the time being or shall > we revert that and replace it with the .val scheme? Is that the one that was quoted at the beginning of the thread, that uses barrier()? I guess as a workar

Re: compiler bug gcc4.6/4.7 with ACCESS_ONCE and workarounds

2014-11-11 Thread Linus Torvalds
On Tue, Nov 11, 2014 at 4:33 PM, Linus Torvalds wrote: > > I guess as a workaround it is fine, as long as we don't lose sight of > trying to eventually do a better job. Oh, and when it comes to the actual gcc bug - do you have any reason to believe that it's somehow trigg

Re: compiler bug gcc4.6/4.7 with ACCESS_ONCE and workarounds

2014-11-20 Thread Linus Torvalds
On Thu, Nov 20, 2014 at 3:39 AM, Christian Borntraeger wrote: > > So It looks like we could make a change to ACCESS_ONCE. Would something like > > CONFIG_ARCH_SCALAR_ACCESS_ONCE be a good start? No, if it's just a handful of places to be fixed, let's not add config options for broken cases. > Th

Re: [PATCH, RFC] x86-64: properly handle FPU code/data selectors

2013-10-16 Thread Linus Torvalds
On Wed, Oct 16, 2013 at 5:00 AM, Jan Beulich wrote: > > The basic idea here is to either use a priori information on the > intended state layout (in the case of 32-bit processes) or "sense" the > proper layout (in the case of KVM guests) by inspecting the already > saved FPU rip/rdp, and reading t

Re: [PATCH, RFC] x86-64: properly handle FPU code/data selectors

2013-10-16 Thread Linus Torvalds
On Wed, Oct 16, 2013 at 8:36 AM, Jan Beulich wrote: > > In that case we use a 32-bit operand size [F]XRSTOR, and hence > the upper halves get treated as selectors, and the offsets get > zero-extended from the low halves, i.e. we preserve even more > state for such a 64-bit environment now too (alb

Re: [PATCH, RFC] x86-64: properly handle FPU code/data selectors

2013-10-16 Thread Linus Torvalds
On Wed, Oct 16, 2013 at 9:13 AM, Jan Beulich wrote: > > But again - this isn't being done for ordinary 64-bit applications, > this is only happening for KVM guests. And there not being a > protocol for telling the caller whether a certain context hold > 64-bit offsets or selector/offset pairs shou

Re: [PATCH 3.12-rc7] KVM: Fix modprobe failure for kvm_intel/kvm_amd

2013-10-29 Thread Linus Torvalds
Ugh. I won't comment on the actual kvm part of this patch, somebody who knows that code should do so. But I reacted to this: On Tue, Oct 29, 2013 at 8:13 AM, Tim Gardner wrote: > > sudo modprobe kvm_amd > modprobe: ERROR: could not insert 'kvm_amd': Bad address "Bad address"? Christ people, are

Re: [PATCH 3.12-rc7] KVM: Fix modprobe failure for kvm_intel/kvm_amd

2013-10-29 Thread Linus Torvalds
On Tue, Oct 29, 2013 at 12:27 PM, Raghavendra K T wrote: > > Could one solution be cascading actual error > that is lost in fs/debugfs/inode.c:__create_file(), so that we could > take correct action in case of failure of debugfs_create_dir()? > > (ugly side is we increase total number of params fo

Re: [GIT PULL] KVM fixes for 3.15-rc6

2014-05-27 Thread Linus Torvalds
On Tue, May 27, 2014 at 3:08 PM, Paul Mackerras wrote: > > Linus seems not to have done this pull yet - Paolo, maybe you should > resend the request and cc Linus this time? Indeed. I don't pull stuff unless it's explicitly sent to me, and this one seems to have been sent just to the lists. Please

Re: [RFC] Implement Batched (group) ticket lock

2014-05-28 Thread Linus Torvalds
On Wed, May 28, 2014 at 2:55 PM, Rik van Riel wrote: > > Or maybe cmpxchg is cheap once you already own the cache line > exclusively? A locked cmpxchg ends up being anything between ~15-50 cycles depending on microarchitecture if things are already exclusively in the cache (with the P4 being an o

Re: [GIT PULL] KVM updates for 2.6.35-rc2

2010-06-10 Thread Linus Torvalds
On Thu, Jun 10, 2010 at 2:31 AM, Avi Kivity wrote: > Linus, please pull from > >  git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/2.6.35 > > to receive a bunch of KVM fixes for 2.6.35-rc2, including a workaround for a > cpu erratum that can allow a guest to crash the host. Hmm. This loo

Re: [GIT PULL] KVM updates for 2.6.35-rc2

2010-06-10 Thread Linus Torvalds
On Thu, Jun 10, 2010 at 10:34 AM, Avi Kivity wrote: > > Ok.  I've dropped the SRAO patch; this still leaves ~100 changed lines, but > they are almost all due to the erratum 383 workaround, which can result in a > guest killing the host.  The rest of the patches are less critical, but they > are on

Re: [GIT PULL] AlacrityVM guest drivers for 2.6.33

2009-12-23 Thread Linus Torvalds
On Wed, 23 Dec 2009, Gregory Haskins wrote: > > > > And upstream submission is not always like this! > > I would think the process would come to a grinding halt if it were ;) Well, in all honesty, if it had been non-virtualized drivers I would just have pulled. The pull request all looked san

Re: [PATCH] Define smp_call_function_many for UP

2008-12-18 Thread Linus Torvalds
On Fri, 19 Dec 2008, Rusty Russell wrote: > > Linus, please apply. Otherwise those using it in transition patches (eg. kvm) > can't compile with CONFIG_SMP=n: Umm. I already applied this a long time ago. It's commit d2ff911882b6bc693d86ca9566daac70aacbb2b3 Linus -- To unsubscr

Re: [PATCH] Define smp_call_function_many for UP

2008-12-19 Thread Linus Torvalds
On Fri, 19 Dec 2008, Rusty Russell wrote: > > On Friday 19 December 2008 08:46:37 Linus Torvalds wrote: > > > > Umm. I already applied this a long time ago. It's commit > > d2ff911882b6bc693d86ca9566daac70aacbb2b3 > > Wow, it's like Santa came ear

Re: [PATCH 2 of 3] mm_take_all_locks

2008-06-05 Thread Linus Torvalds
Just a small comment fix. On Thu, 5 Jun 2008, Andrea Arcangeli wrote: > + /* > + * AS_MM_ALL_LOCKS can't change from under us because > + * we hold the global_mm_spinlock. There's no global_mm_spinlock, you mean the 'mm_all_locks_mutex'. (There was at least

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-24 Thread Linus Torvalds
On Wed, 25 Jun 2008, Avi Kivity wrote: > > Linus, please pull from the repo and branch at: > > git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git kvm-updates-2.6.26 > > to receive kvm updates for 2.6.26-rc7. The patches fix host oopses, > guest interrupt loss, and total kvm clock borka

Re: [GIT PULL] KVM updates for the 3.8 merge window

2012-12-13 Thread Linus Torvalds
On Wed, Dec 12, 2012 at 1:19 PM, Stephen Rothwell wrote: > > There is a section of this tree (the kvm-ppc tree in linux-next) that has > been rebased before being merged into this tree. Alexander, please > don't do that (especially since it has *not* bee rebased in the kvm-ppc > tree but more wo

Re: [GIT PULL] KVM updates for the 3.8 merge window

2012-12-13 Thread Linus Torvalds
On Thu, Dec 13, 2012 at 3:03 PM, Stephen Rothwell wrote: > > Actually only in my tree (until Alexander cleans his tree up). I am > going to have a conversation with Alexander about process. Ok, as long as it's contained, I guess I'll pull. Linus -- To unsubscribe from this list: sen

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-17 Thread Linus Torvalds
On Fri, Apr 17, 2015 at 4:39 PM, Andy Lutomirski wrote: > > On my box, vclock_gettime using kvm-clock is about 40 ns. An empty > syscall is about 33 ns. clock_gettime *should* be around 17 ns. > > The clock_gettime syscall is about 73 ns. > > Could we figure out why clock_gettime (the syscall) i

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-17 Thread Linus Torvalds
On Fri, Apr 17, 2015 at 5:42 PM, Andy Lutomirski wrote: > > Muahaha. The auditors have invaded your system. (I did my little > benchmark with a more sensible configuration -- see way below). > > Can you send the output of: > > # auditctl -s > # auditctl -l # auditctl -s enabled 1 flag 1

Re: [PATCH 5/7] userfaultfd: switch to exclusive wakeup for blocking reads

2015-06-15 Thread Linus Torvalds
On Mon, Jun 15, 2015 at 12:19 PM, Andrea Arcangeli wrote: > > Yes, it would leave the other blocked, how is it different from having > just 1 reader and it gets killed? Either is completely wrong. But the read() code can at least see that "I'm returning early due to a signal, so I'll wake up any

Re: [GIT PULL] First batch of KVM changes for 4.2

2015-06-24 Thread Linus Torvalds
On Tue, Jun 23, 2015 at 9:49 AM, Paolo Bonzini wrote: > > There are some x86 conflicts, one with the rc8 pull request and > the rest with Ingo's FPU rework. Hmm. I'm dropping the "fx_init(..init_state)" changes from you pull request, since fx_init is static and only has one caller, and that one h

Re: [PULL] virtio/vhost: cross endian support

2015-07-01 Thread Linus Torvalds
On Wed, Jul 1, 2015 at 2:31 AM, Michael S. Tsirkin wrote: > virtio/vhost: cross endian support Ugh. Does this really have to be dynamic? Can't virtio do the sane thing, and just use a _fixed_ endianness? Doing a unconditional byte swap is faster and simpler than the crazy conditionals. That's t

Re: [PULL] virtio/vhost: cross endian support

2015-07-01 Thread Linus Torvalds
On Wed, Jul 1, 2015 at 12:02 PM, Linus Torvalds wrote: > > Doing a unconditional byte swap is faster and simpler than the crazy > conditionals. Unconditional endianness not only makes for simpler and faster code, it also ends up being easier to debug and add things like type annota

Re: [PULL] virtio/vhost: cross endian support

2015-07-03 Thread Linus Torvalds
On Fri, Jul 3, 2015 at 12:59 AM, Michael S. Tsirkin wrote: > > Linus, could you please clarify whether making the > feature depend on the cross-endian guest support > would address your comment, and whether you think > this can be merged as is, and the dependency added > after -rc1? I'll take it.

Re: [RFC/PATCH 2/3] x86/signal/64: Try to preserve hardware SS across 64-bit signal delivery

2015-08-13 Thread Linus Torvalds
On Thu, Aug 13, 2015 at 2:26 PM, Andy Lutomirski wrote: > > VERW is no good, because it considers non-present segments to be > writable. Test cases for the win! Seriously? That's crazy. I don't think I've actually ever used VERW, but the documentation certainly says that the segment has to be wr

Re: [GIT PULL] Early batch of KVM changes for 4.3 merge window

2015-08-31 Thread Linus Torvalds
Hmm: On Fri, Aug 14, 2015 at 4:57 PM, Paolo Bonzini wrote: > > Xiao Guangrong (9): > KVM: MMU: fully check zero bits for sptes The above commit causes an annoying new compiler warning. The warning is bogus ("variable 'leaf' possibly uninitialized"), because the use of the variable is prot

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-20 Thread Linus Torvalds
On Sun, Sep 20, 2015 at 5:02 PM, Andy Lutomirski wrote: > This demotes an OOPS and likely panic due to a failed non-"safe" MSR > access to a WARN_ON_ONCE and a return of zero (in the RDMSR case). > We still write a pr_info entry unconditionally for debugging. No, this is wrong. If you really wan

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-21 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 1:46 AM, Ingo Molnar wrote: > > Linus, what's your preference? So quite frankly, is there any reason we don't just implement native_read_msr() as just unsigned long long native_read_msr(unsigned int msr) { int err; unsigned long long val; val = na

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-21 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 9:49 AM, Arjan van de Ven wrote: >> >> How many msr reads are so critical that the function call >> overhead would matter? > > if anything qualifies it'd be switch_to() and friends. Is there anything else than the FS/GS_BASE thing (possibly hidden behind inlines etc that I

Re: [PATCH v2 1/2] x86/msr: Carry on after a non-"safe" MSR access fails without !panic_on_oops

2015-09-21 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:16 AM, Andy Lutomirski wrote: > > In the interest of sanity, I want to drop the "native_", too Yes. I think the only reason it exists is to have that wrapper layer for PV. And that argument just goes away if you just make the non-inline helper function do all the PV log

Re: [PATCH] x86: Use entire page for the per-cpu GDT only if paravirt-enabled

2015-09-29 Thread Linus Torvalds
On Tue, Sep 29, 2015 at 1:35 PM, Andy Lutomirski wrote: > > Does anyone know what happens if you stick a non-accessed segment in > the GDT, map the GDT RO, and access it? You should get a #PF, as you guess, but go ahead and test it if you want to make sure. We do something very similar for the o

Re: [PATCH v2 0/3] x86_64,entry: Rearrange the syscall exit optimizations

2015-01-17 Thread Linus Torvalds
On Sat, Jan 17, 2015 at 1:19 PM, Andy Lutomirski wrote: > Linus, I suspect you'll either like or hate this series. Or maybe > you'll think it's crazy but you'll like it anyway. I'm curious > which of those is the case. :) I have no hugely strong reaction to the patches, but it seems to be a goo

Re: [PATCH] x86 spinlock: Fix memory corruption on completing completions

2015-02-06 Thread Linus Torvalds
On Fri, Feb 6, 2015 at 7:20 AM, Sasha Levin wrote: > > Can we modify it slightly to avoid potentially accessing invalid memory: So I think there's a race with that. And I'll warn you: the kernel does do speculative reads of memory that might be invalid, not just in places like this. See the comm

Re: [PATCH] x86 spinlock: Fix memory corruption on completing completions

2015-02-06 Thread Linus Torvalds
On Fri, Feb 6, 2015 at 6:49 AM, Raghavendra K T wrote: > Paravirt spinlock clears slowpath flag after doing unlock. [ fix edited out ] So I'm not going to be applying this for 3.19, because it's much too late and the patch is too scary. Plus the bug probably effectively never shows up in real lif

Re: [PATCH] x86 spinlock: Fix memory corruption on completing completions

2015-02-09 Thread Linus Torvalds
On Mon, Feb 9, 2015 at 4:02 AM, Peter Zijlstra wrote: > On Mon, Feb 09, 2015 at 03:04:22PM +0530, Raghavendra K T wrote: >> So we have 3 choices, >> 1. xadd >> 2. continue with current approach. >> 3. a read before unlock and also after that. > > For the truly paranoid we have probe_kernel_address

Re: [PATCH 19/21] userfaultfd: remap_pages: UFFDIO_REMAP preparation

2015-03-05 Thread Linus Torvalds
On Thu, Mar 5, 2015 at 9:18 AM, Andrea Arcangeli wrote: > remap_pages is the lowlevel mm helper needed to implement > UFFDIO_REMAP. This function is nasty nasty nasty. Is this really worth it? On real loads? That people are expected to use? Considering how we just got rid of one special magic V

Re: [PATCH 19/21] userfaultfd: remap_pages: UFFDIO_REMAP preparation

2015-03-05 Thread Linus Torvalds
On Thu, Mar 5, 2015 at 10:51 AM, Andrea Arcangeli wrote: > > Thanks for your idea that the UFFDIO_COPY is faster, the userland code > we submitted for qemu only uses UFFDIO_COPY|ZEROPAGE, it never uses > UFFDIO_REMAP. Ok. So there's no actual expected use of the remap interface. Good. That makes