Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-23 Thread Loic Prylli
On 12/23/2007 12:44 AM, Jeff Garzik wrote: By possibly using different implementations for the two ranges you avoid introducing a new API, you avoid taking risks with mmconf when you don't need it. That doesn't preclude using mmconf for everything either if the user requests it or based on

Re: [PATCH] kthread: run kthreadd with max priority SCHED_FIFO

2007-12-23 Thread Mike Galbraith
On Sat, 2007-12-22 at 02:52 -0800, Andrew Morton wrote: On Sat, 22 Dec 2007 11:39:30 +0100 Mike Galbraith [EMAIL PROTECTED] wrote: On Sat, 2007-12-22 at 04:52 -0500, Jon Masters wrote: So, user tasks running with SCHED_FIFO should be able to lock a system? I guess I see both

Re: [lm-sensors] 2.6.24-rc4 hwmon it87 probe fails

2007-12-23 Thread Jean Delvare
Hi Bjorn, Le 23/12/2007, Bjorn Helgaas a écrit: On Saturday 22 December 2007 4:21:41 am Jean Delvare wrote: This patch makes the it87 driver request only the two ports used for the Environment Controller device. The problem is that the IT87xxF chips do decode 4 ports (recent chips,

tlb_finish_mmu() bogisity

2007-12-23 Thread Al Viro
tlb-need_flush += __get_cpu_var(quicklist)[0].nr_pages != 0; makes no sense whatsoever. How the hell can you ever get the address of __get_cpu_var(quicklist)[0].nr_pages to be NULL? Postfix operators have higher precedence than prefix ones, so that's

Re: [GIT PATCH] USB fixes for 2.6.24-rc5

2007-12-23 Thread Markus Rechberger
Hi, did anyone already take care about: http://www.mail-archive.com/[EMAIL PROTECTED]/msg55641.html the fix seems to paper the issue although it happened with other people too now, so I wonder if there's any progress in that area? thanks have a nice Christmas, Markus On Dec 23, 2007 8:24 AM,

Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-23 Thread Martin Mares
Hi! The fact is, 99% of the hardware you buy *today* has absolutely zero need for extended PCI config access. In fact, I would not be surprised at all if most hardware sold today generally doesn't have *any* devices that even have config registers in the 0x100+ range. Most PCI Express

Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-23 Thread Arjan van de Ven
3) mmconfig might or might not be enabled, depending on which driver is loaded, whether it called an API or not. Even LESS testing by hw vendors than #2. Maybe even never Inconsistent (config access depends on device) the depends on device is even true for Linux today. For

Re: [PATCH] initrd: Fix virtual/physical mix-up in overwrite test

2007-12-23 Thread Geert Uytterhoeven
On Tue, 18 Dec 2007, Andrew Morton wrote: On Tue, 18 Dec 2007 20:52:07 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: On Tue, 18 Dec 2007, Andrew Morton wrote: On Sun, 16 Dec 2007 11:51:00 +0100 (CET) Geert Uytterhoeven [EMAIL PROTECTED] wrote: On recent kernels, I get the

Re: [patch] Make MMCONFIG space (extended PCI config space) a driver opt-in issue

2007-12-23 Thread Ivan Kokshaysky
On Sun, Dec 23, 2007 at 12:44:30AM -0500, Jeff Garzik wrote: Failures are more predictable and more consistent with an all-or-none scenario. The all-or-none solutions are the least complex on the software side, and far more widely tested than any mixed config access scheme. Nope. The vast

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Ingo Molnar
* Andrew Morton [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ - This kernel doesn't work on i386! It oopses late in boot due to an unrevertable change (e3c1b141) in git-x86 which I stared at for a while then I ran

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Ingo Molnar
* Ingo Molnar [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ - This kernel doesn't work on i386! It oopses late in boot due to an unrevertable change (e3c1b141) in git-x86 which I stared at for a while then I

Updated Kernel Hacker's guide to git

2007-12-23 Thread Jeff Garzik
Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the input sent to me in the past several months, as well as a few new tips and tricks I use on a regular basis. In general, this

Re: [PATCH 2/2] scsi: Use new __dma_buffer to align sense buffer in scsi_cmnd

2007-12-23 Thread Boaz Harrosh
On Fri, Dec 21 2007 at 4:30 +0200, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: The sense buffer ins scsi_cmnd can nowadays be DMA'ed into directly by some low level drivers (that typically happens with USB mass storage). This is a problem on non cache coherent architectures such as

Re: Testing RAM from userspace / question about memmap= arguments

2007-12-23 Thread Pavel Machek
On Sun 2007-12-23 18:05:59, David Newall wrote: Pavel Machek wrote: On Sun 2007-12-23 07:06:58, David Newall wrote: It's kind of hard to run anything over SSH if it has to be run before userspace is up. But the kernel can collect results from a modified memtest, after it chains back.

Re: NFS EINVAL on open(... | O_TRUNC) on 2.6.23.9

2007-12-23 Thread Gianluca Alberici
Hello, I can do better. I have investigated a bit the problem: 1) The problem arises only with the userspace nfsd (Universal nfsd 2.2). I have realized that the latest patches introduced in 2.6.22 have changed a lot of things into NFS. 2) The following code has been debugged with

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Andrew Morton
On Sun, 23 Dec 2007 12:10:04 +0100 Ingo Molnar [EMAIL PROTECTED] wrote: * Ingo Molnar [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ - This kernel doesn't work on i386! It oopses late in boot due to an

[PATCH] USB Kconfig: Reorganize USB Kconfig Menu

2007-12-23 Thread Al Boldi
Reogranize USB Kconfig Menu, and move USB_GADGET out into the Device Driver Menu. This helps the USB Kconfig Menu to be more logical/usable. Cc: David Brownell [EMAIL PROTECTED] Cc: Greg KH [EMAIL PROTECTED] Cc: Andrew Morton [EMAIL PROTECTED] Signed-off-by: Al Boldi [EMAIL PROTECTED] --- ---

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Ingo Molnar
* Andrew Morton [EMAIL PROTECTED] wrote: Still. The crash is 100% repeatable and is the same every time. Happens on both my i386 test boxes. http://userweb.kernel.org/~akpm/config-sony.txt http://userweb.kernel.org/~akpm/config-vmm.txt and I bisected it down to e3c1b141. ok, can

Re: [PATCH 02/24] udf: rename UDF_SB to udf_sb

2007-12-23 Thread Christoph Hellwig
On Sun, Dec 23, 2007 at 02:50:52AM +0100, [EMAIL PROTECTED] wrote: rename UDF_SB function to udf_sb FOO_SB is a convention used by most filesystems, so I don't really see any point in changing it. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread Robert P. J. Day
On Sun, 23 Dec 2007, Jeff Garzik wrote: Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the input sent to me in the past several months, as well as a few new tips and tricks I use on a

Re: [PATCH 04/24] udf: convert UDF_SB_VOLIDENT macro to udf_sb_volume_ident function

2007-12-23 Thread Christoph Hellwig
On Sun, Dec 23, 2007 at 02:50:54AM +0100, [EMAIL PROTECTED] wrote: - change UDF_SB_VOLIDENT macro to udf_sb_volume_ident inline function - rename s_volident field to s_volume_ident Please just use the field directly without an accessor. And as usual there's a lot of opportunity to have a nice

Re: [PATCH 05/24] udf: convert UDF_SB_NUMPARTS macro to udf_sb_num_parts function

2007-12-23 Thread Christoph Hellwig
Same comment applies to this one. And probably the following patches aswell so I'm not going to comment on this issue for them. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Christoph Hellwig
On Sun, Dec 23, 2007 at 12:57:35PM +0100, Ingo Molnar wrote: * Andrew Morton [EMAIL PROTECTED] wrote: Still. The crash is 100% repeatable and is the same every time. Happens on both my i386 test boxes. http://userweb.kernel.org/~akpm/config-sony.txt

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread Jeff Garzik
Robert P. J. Day wrote: On Sun, 23 Dec 2007, Jeff Garzik wrote: Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the input sent to me in the past several months, as well as a few new

Re: [PATCH] fat: Editions to support fat_fallocate()

2007-12-23 Thread OGAWA Hirofumi
Grant Likely [EMAIL PROTECTED] writes: +/* + * preallocate space for a file. This implements fat fallocate inode + * operation, which gets called from sys_fallocate system call. User + * space requests len bytes at offset. + */ +long fat_fallocate(struct inode *inode, int mode, loff_t

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Rafael J. Wysocki
On Sunday, 23 of December 2007, Andrew Morton wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ - This kernel doesn't work on i386! It oopses late in boot due to an unrevertable change (e3c1b141) in git-x86 which I stared at for a while

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread Robert P. J. Day
On Sun, 23 Dec 2007, Jeff Garzik wrote: Robert P. J. Day wrote: On Sun, 23 Dec 2007, Jeff Garzik wrote: Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the input sent to

Re: [patch 17/20] non-reclaimable mlocked pages

2007-12-23 Thread Nick Piggin
On Saturday 22 December 2007 01:17, Rik van Riel wrote: On Fri, 21 Dec 2007 21:52:19 +1100 Nick Piggin [EMAIL PROTECTED] wrote: BTW. if you have any workloads that are limited by page reclaim, especially unmapped file backed pagecache reclaim, then I have some stright-line-speedup patches

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread WANG Cong
On Sun, Dec 23, 2007 at 06:13:03AM -0500, Jeff Garzik wrote: Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the input sent to me in the past several months, as well as a few new tips and

Re: [PATCH 0/4] add task handling notifier

2007-12-23 Thread Christoph Hellwig
On Thu, Dec 20, 2007 at 01:11:24PM +, Jan Beulich wrote: With more and more sub-systems/sub-components leaving their footprint in task handling functions, it seems reasonable to add notifiers that these components can use instead of having them all patch themselves directly into core

Re: [PATCH] USB Kconfig: Reorganize USB Kconfig Menu

2007-12-23 Thread Jan Engelhardt
On Dec 23 2007 14:49, Al Boldi wrote: --- 23.a/drivers/usb/Kconfig +++ 23.b/drivers/usb/Kconfig @@ -2,8 +2,8 @@ # USB device configuration # -menuconfig USB_SUPPORT - bool USB support +config USB_SUPPORT + bool depends on HAS_IOMEM default y ---help--- With

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Ingo Molnar
* Rafael J. Wysocki [EMAIL PROTECTED] wrote: Well it doesn't build on x86-64 for me: CHK include/linux/compile.h CC arch/x86/ia32/../../../fs/compat_binfmt_elf.o Assembler messages: Fatal error: can't create arch/x86/ia32/../../../fs/.tmp_compat_binfmt_elf.o: No such file

Re: Updated Kernel Hacker's guide to git

2007-12-23 Thread Dieter Ries
Robert P. J. Day schrieb: On Sun, 23 Dec 2007, Jeff Garzik wrote: Robert P. J. Day wrote: On Sun, 23 Dec 2007, Jeff Garzik wrote: Another year, another update! :) The kernel hacker's guide to git has received some updates: http://linux.yyz.us/git-howto.html This includes all the

[BUG 2.6.24-rc6-mm1] BUG() at check_irqs_on() in fs/buffer.c .

2007-12-23 Thread Tetsuo Handa
Hello. I encountered a BUG(). I didn't encounter this bug for 2.6.24-rc5-mm1 . I guess this bug was introduced between 2.6.24-rc5-mm1 and 2.6.24-rc6-mm1 . I placed .config at http://I-love.SAKURA.ne.jp/tmp/config-2.6.24-rc6-mm1 The dmesg is attached below. Regards. - Linux version

Re: [PATCH] USB Kconfig: Reorganize USB Kconfig Menu

2007-12-23 Thread Al Boldi
Jan Engelhardt wrote: On Dec 23 2007 14:49, Al Boldi wrote: --- 23.a/drivers/usb/Kconfig +++ 23.b/drivers/usb/Kconfig @@ -2,8 +2,8 @@ # USB device configuration # -menuconfig USB_SUPPORT -bool USB support +config USB_SUPPORT +bool depends on HAS_IOMEM default y

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Rafael J. Wysocki
On Sunday, 23 of December 2007, Rafael J. Wysocki wrote: On Sunday, 23 of December 2007, Ingo Molnar wrote: * Rafael J. Wysocki [EMAIL PROTECTED] wrote: Well it doesn't build on x86-64 for me: CHK include/linux/compile.h CC

Re: [PATCH] tty: Fix logic change introduced by wait_event_interruptible_timeout()

2007-12-23 Thread Jiri Slaby
On 12/20/2007 10:39 PM, Cory T. Tusar wrote: tty: Fix logic change introduced by wait_event_interruptible_timeout() Commit 5a52bd4a2dcb570333ce6fe2e16cd311650dbdc8 introduced a subtle logic change in tty_wait_until_sent(). The original version would only error out of the 'do { ... } while

Re: [RFC] [PATCH] Memory controller remove control_type feature

2007-12-23 Thread Balbir Singh
Hugh Dickins wrote: On Sat, 22 Dec 2007, Balbir Singh wrote: Andrew Morton wrote: On Fri, 21 Dec 2007 00:23:58 +0530 Balbir Singh [EMAIL PROTECTED] wrote: Based on the discussion at http://lkml.org/lkml/2007/12/20/383, it was felt that control_type might not be a good thing to implement

Re: Major regression on hackbench with SLUB (more numbers)

2007-12-23 Thread Andi Kleen
Same here. In fact, I've always considered that procfs was for humans while sysfs was for tools. sysfs reminds me too much the unexploitable /devices in Solaris. With the proper tools, I think we can do a lot with it, but it's not as intuitive to find the proper tools as it was to do ls

[PATCH][RFC] Simple tamper-proof device filesystem.

2007-12-23 Thread Tetsuo Handa
Hello. Thank you for attending discussion for previous posting (starting from http://lkml.org/lkml/2007/12/16/23 ). The previous posting was for feasibility test to know whether this kind of trivial filesystem is acceptable for mainline. Now, it seems that there is a little chance for

wistron_btns-add-support-for-x86_64-systems.patch in -mm

2007-12-23 Thread Andi Kleen
While looking for something else I stumbled over wistron_btns-add-support-for-x86_64-systems.patch in -mm. The patch looks very dubious to me. It basically calls a BIOS function in long mode. To work like implemented the BIOS would need to know magically what it was called from (32bit or 64bit)

[PATCH 00/50] KVM patch queue review for 2.6.25 merge window (part I)

2007-12-23 Thread Avi Kivity
Following is the first part of the 2.6.25 merge window submission. Since there are 238 patches in the queue (and a few more expected), they'll be sent in five batches of around 50 each. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

[PATCH 03/50] KVM: x86 emulator: remove unused functions

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Remove #ifdef functions never used Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 39 --- 1 files changed, 0 insertions(+), 39 deletions(-)

[PATCH 01/50] KVM: x86 emulator: Add vmmcall/vmcall to x86_emulate (v3)

2007-12-23 Thread Avi Kivity
From: Anthony Liguori [EMAIL PROTECTED] Add vmmcall/vmcall to x86_emulate. Future patch will implement functionality for these instructions. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 23 +--

[PATCH 02/50] KVM: Refactor hypercall infrastructure (v3)

2007-12-23 Thread Avi Kivity
From: Anthony Liguori [EMAIL PROTECTED] This patch refactors the current hypercall infrastructure to better support live migration and SMP. It eliminates the hypercall page by trapping the UD exception that would occur if you used the wrong hypercall instruction for the underlying architecture

[PATCH 04/50] KVM: x86 emulator: move all x86_emulate_memop() to a structure

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Move all x86_emulate_memop() common variables between decode and execute to a structure decode_cache. This will help in later separating decode and emulate. struct decode_cache { u8 twobyte; u8 b;

[PATCH 06/50] KVM: emulate_instruction() calls now x86_decode_insn() and x86_emulate_insn()

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] emulate_instruction() calls now x86_decode_insn() and x86_emulate_insn(). x86_emulate_insn() is x86_emulate_memop() without the decoding part. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

[PATCH 07/50] KVM: Call x86_decode_insn() only when needed

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Move emulate_ctxt to kvm_vcpu to keep emulate context when we exit from kvm module. Call x86_decode_insn() only when needed. Modify x86_emulate_insn() to not modify the context if it must be re-entered. Signed-off-by: Laurent Vivier [EMAIL PROTECTED]

[PATCH 08/50] KVM: VMX: Further reduce efer reloads

2007-12-23 Thread Avi Kivity
KVM avoids reloading the efer msr when the difference between the guest and host values consist of the long mode bits (which are switched by hardware) and the NX bit (which is emulated by the KVM MMU). This patch also allows KVM to ignore SCE (syscall enable) when the guest is running in 32-bit

[PATCH 10/50] KVM: MMU: Make flooding detection work when guest page faults are bypassed

2007-12-23 Thread Avi Kivity
When we allow guest page faults to reach the guests directly, we lose the fault tracking which allows us to detect demand paging. So we provide an alternate mechnism by clearing the accessed bit when we set a pte, and checking it later to see if the guest actually used it. Signed-off-by: Avi

[PATCH 09/50] KVM: Allow not-present guest page faults to bypass kvm

2007-12-23 Thread Avi Kivity
There are two classes of page faults trapped by kvm: - host page faults, where the fault is needed to allow kvm to install the shadow pte or update the guest accessed and dirty bits - guest page faults, where the guest has faulted and kvm simply injects the fault back into the guest to

[PATCH 05/50] KVM: x86 emulator: move all decoding process to function x86_decode_insn()

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Split the decoding process into a new function x86_decode_insn(). Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 77 +++-- 1 files

[PATCH 11/50] KVM: MMU: Ignore reserved bits in cr3 in non-pae mode

2007-12-23 Thread Avi Kivity
From: Ryan Harper [EMAIL PROTECTED] This patch removes the fault injected when the guest attempts to set reserved bits in cr3. X86 hardware doesn't generate a fault when setting reserved bits. The result of this patch is that vmware-server, running within a kvm guest, boots and runs memtest from

[PATCH 12/50] KVM: x86 emulator: split some decoding into functions for readability

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] To improve readability, move push, writeback, and grp 1a/2/3/4/5/9 emulation parts into functions. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 451

[PATCH 15/50] KVM: x86_emulator: no writeback for bt

2007-12-23 Thread Avi Kivity
From: Qing He [EMAIL PROTECTED] Signed-off-by: Qing He [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 8b0186f..fe50317

[PATCH 17/50] KVM: x86 emulator: Any legacy prefix after a REX prefix nullifies its effect

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] This patch modifies the management of REX prefix according behavior I saw in Xen 3.1. In Xen, this modification has been introduced by Jan Beulich. http://lists.xensource.com/archives/html/xen-changelog/2007-01/msg00081.html Signed-off-by: Laurent Vivier

[PATCH 18/50] KVM: VMX: Don't clear the vmcs if the vcpu is not loaded on any processor

2007-12-23 Thread Avi Kivity
Noted by Eddie Dong. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/vmx.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index d32e63d..8929575 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -225,7 +225,9

[PATCH 13/50] KVM: x86 emulator: remove _eflags and use directly ctxt-eflags.

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Remove _eflags and use directly ctxt-eflags. Caching eflags is not needed as it is restored to vcpu by kvm_main.c:emulate_instruction() from ctxt-eflags only if emulation doesn't fail. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi

[PATCH 23/50] KVM: Add kvm_free_lapic() to pair with kvm_create_lapic()

2007-12-23 Thread Avi Kivity
From: Rusty Russell [EMAIL PROTECTED] Instead of the asymetry of kvm_free_apic, implement kvm_free_lapic(). And guess what? I found a minor bug: we don't need to hrtimer_cancel() from kvm_main.c, because we do that in kvm_free_apic(). Also: 1) kvm_vcpu_uninit should be the reverse order from

[PATCH 21/50] KVM: Add general accessors to read and write guest memory

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED](none) Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm.h |9 +++ drivers/kvm/kvm_main.c | 160 +++- drivers/kvm/vmx.c | 43 ++--- 3

[PATCH 22/50] KVM: Allow dynamic allocation of the mmu shadow cache size

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] The user is now able to set how many mmu pages will be allocated to the guest. Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm.h |7 ++- drivers/kvm/kvm_main.c | 47

[PATCH 20/50] KVM: Remove the usage of page-private field by rmap

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] When kvm uses user-allocated pages in the future for the guest, we won't be able to use page-private for rmap, since page-rmap is reserved for the filesystem. So we move the rmap base pointers to the memory slot. A side effect of this is that we need to store

[PATCH 24/50] KVM: Hoist kvm_create_lapic() into kvm_vcpu_init()

2007-12-23 Thread Avi Kivity
From: Rusty Russell [EMAIL PROTECTED] Move kvm_create_lapic() into kvm_vcpu_init(), rather than having svm and vmx do it. And make it return the error rather than a fairly random -ENOMEM. This also solves the problem that neither svm.c nor vmx.c actually handles the error path properly.

[PATCH 31/50] KVM: Move guest pte dirty bit management to the guest pagetable walker

2007-12-23 Thread Avi Kivity
This is more consistent with the accessed bit management, and makes the dirty bit available earlier for other purposes. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/mmu.c |5 + drivers/kvm/paging_tmpl.h | 31 --- 2 files changed, 13

[PATCH 27/50] KVM: Support assigning userspace memory to the guest

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] Instead of having the kernel allocate memory to the guest, let userspace allocate it and pass the address to the kernel. This is required for s390 support, but also enables features like memory sharing and using hugetlbfs backed memory. Signed-off-by: Izik

[PATCH 19/50] KVM: VMX: Simplify vcpu_clear()

2007-12-23 Thread Avi Kivity
Now that smp_call_function_single() knows how to call a function on the current cpu, there's no need to check explicitly. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/vmx.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/kvm/vmx.c

[PATCH 29/50] KVM: MMU: Clean up MMU functions to take struct kvm when appropriate

2007-12-23 Thread Avi Kivity
From: Anthony Liguori [EMAIL PROTECTED] Some of the MMU functions take a struct kvm_vcpu even though they affect all VCPUs. This patch cleans up some of them to instead take a struct kvm. This makes things a bit more clear. The main thing that was confusing me was whether certain functions

[PATCH 32/50] KVM: MMU: Fix nx access bit for huge pages

2007-12-23 Thread Avi Kivity
We must set the bit before the shift, otherwise the wrong bit gets set. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/paging_tmpl.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index da36e48..e07cb2e

[PATCH 25/50] KVM: Remove gratuitous casts from lapic.c

2007-12-23 Thread Avi Kivity
From: Rusty Russell [EMAIL PROTECTED] Since vcpu-apic is of the correct type, there's not need to cast. Signed-off-by: Rusty Russell [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/lapic.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff

[PATCH 34/50] KVM: MMU: Instantiate real-mode shadows as user writable shadows

2007-12-23 Thread Avi Kivity
This is consistent with real-mode permissions. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/mmu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index e6616a6..f52604a 100644 --- a/drivers/kvm/mmu.c +++

[PATCH 36/50] KVM: MMU: When updating the dirty bit, inform the mmu about it

2007-12-23 Thread Avi Kivity
Since the mmu uses different shadow pages for dirty large pages and clean large pages, this allows the mmu to drop ptes that are now invalid. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/paging_tmpl.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCH 37/50] KVM: Portability: split kvm_vcpu_ioctl

2007-12-23 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] This patch splits kvm_vcpu_ioctl into archtecture independent parts, and x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c. Common ioctls for all architectures are: KVM_RUN, KVM_GET/SET_(S-)REGS, KVM_TRANSLATE, KVM_INTERRUPT, KVM_DEBUG_GUEST,

[PATCH 30/50] KVM: MMU: More struct kvm_vcpu - struct kvm cleanups

2007-12-23 Thread Avi Kivity
From: Anthony Liguori [EMAIL PROTECTED] This time, the biggest change is gpa_to_hpa. The translation of GPA to HPA does not depend on the VCPU state unlike GVA to GPA so there's no need to pass in the kvm_vcpu. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL

[PATCH 28/50] KVM: Move x86 msr handling to new files x86.[ch]

2007-12-23 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] Signed-off-by: Carsten Otte [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/Makefile |2 +- drivers/kvm/kvm.h |4 ++ drivers/kvm/kvm_main.c | 69 +--- drivers/kvm/x86.c | 102

[PATCH 35/50] KVM: MMU: Move dirty bit updates to a separate function

2007-12-23 Thread Avi Kivity
Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/paging_tmpl.h | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/kvm/paging_tmpl.h b/drivers/kvm/paging_tmpl.h index 4538b15..a0f84a5 100644 --- a/drivers/kvm/paging_tmpl.h +++

[PATCH 26/50] KVM: CodingStyle cleanup

2007-12-23 Thread Avi Kivity
From: Mike Day [EMAIL PROTECTED] Signed-off-by: Mike D. Day [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm.h | 32 +- drivers/kvm/kvm_main.c| 58 ++ drivers/kvm/lapic.c |3 +-

[PATCH 38/50] KVM: apic round robin cleanup

2007-12-23 Thread Avi Kivity
From: Qing He [EMAIL PROTECTED] If no apic is enabled in the bitmap of an interrupt delivery with delivery mode of lowest priority, a warning should be reported rather than select a fallback vcpu Signed-off-by: Qing He [EMAIL PROTECTED] Signed-off-by: Eddie (Yaozu) Dong [EMAIL PROTECTED]

[PATCH 33/50] KVM: MMU: Disable write access on clean large pages

2007-12-23 Thread Avi Kivity
By forcing clean huge pages to be read-only, we have separate roles for the shadow of a clean large page and the shadow of a dirty large page. This is necessary because different ptes will be instantiated for the two cases, even for read faults. Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

[PATCH 14/50] KVM: x86 emulator: Remove no_wb, use dst.type = OP_NONE instead

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Remove no_wb, use dst.type = OP_NONE instead, idea stollen from xen-3.1 Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 76 ++--

[PATCH 42/50] KVM: x86 emulator: Implement emulation of instruction: inc dec

2007-12-23 Thread Avi Kivity
From: Nitin A Kamble [EMAIL PROTECTED] Instructions: inc r16/r32 (opcode 0x40-0x47) dec r16/r32 (opcode 0x48-0x4f) Signed-off-by: Nitin A Kamble [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/x86_emulate.c | 20 ++-- 1 files

[PATCH 49/50] KVM: Use virtual cpu accounting if available for guest times.

2007-12-23 Thread Avi Kivity
From: Christian Borntraeger [EMAIL PROTECTED] ppc and s390 offer the possibility to track process times precisely by looking at cpu timer on every context switch, irq, softirq etc. We can use that infrastructure as well for guest time accounting. We need to account the used time before we change

[PATCH 46/50] KVM: MMU: Keep a reverse mapping of non-writable translations

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] The current kvm mmu only reverse maps writable translation. This is used to write-protect a page in case it becomes a pagetable. But with swapping support, we need a reverse mapping of read-only pages as well: when we evict a page, we need to remove any

[PATCH 47/50] KVM: MMU: Make gfn_to_page() always safe

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] In case the page is not present in the guest memory map, return a dummy page the guest can scribble on. This simplifies error checking in its users. Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm.h

[PATCH 48/50] KVM: MMU: Partial swapping of guest memory

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] This allows guest memory to be swapped. Pages which are currently mapped via shadow page tables are pinned into memory, but all other pages can be freely swapped. The patch makes gfn_to_page() elevate the page's reference count, and introduces

[PATCH 50/50] KVM: Allocate userspace memory for older userspace

2007-12-23 Thread Avi Kivity
From: Anthony Liguori [EMAIL PROTECTED] Allocate a userspace buffer for older userspaces. Also eliminate phys_mem buffer. The memset() in kvmctl really kills initial memory usage but swapping works even with old userspaces. A side effect is that maximum guest side is reduced for older

[PATCH 45/50] KVM: MMU: Add rmap_next(), a helper for walking kvm rmaps

2007-12-23 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/mmu.c | 45 +++-- 1 files changed, 35 insertions(+), 10 deletions(-) diff --git a/drivers/kvm/mmu.c

[PATCH 44/50] KVM: x86 emulator: cmc, clc, cli, sti

2007-12-23 Thread Avi Kivity
From: Nitin A Kamble [EMAIL PROTECTED] Instruction: cmc, clc, cli, sti opcodes: 0xf5, 0xf8, 0xfa, 0xfb respectively. [avi: fix reference to EFLG_IF which is not defined anywhere] Signed-off-by: Nitin A Kamble [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

[PATCH 43/50] KVM: MMU: Simplify page table walker

2007-12-23 Thread Avi Kivity
Simplify the walker level loop not to carry so much information from one loop to the next. In addition to being complex, this made kmap_atomic() critical sections difficult to manage. As a result of this change, kmap_atomic() sections are limited to actually touching the guest pte, which allows

[PATCH 41/50] KVM: Rename KVM_TLB_FLUSH to KVM_REQ_TLB_FLUSH

2007-12-23 Thread Avi Kivity
We now have a new namespace, KVM_REQ_*, for bits in vcpu-requests. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm.h |2 +- drivers/kvm/kvm_main.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index

[PATCH 39/50] KVM: Add some \n in ioapic_debug()

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] Add new-line at end of debug strings. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/ioapic.c | 25 ++--- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git

[PATCH 40/50] KVM: Move apic timer interrupt backlog processing to common code

2007-12-23 Thread Avi Kivity
Beside the obvious goodness of making code more common, this prevents a livelock with the next patch which moves interrupt injection out of the critical section. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c |2 ++ drivers/kvm/svm.c |1 - drivers/kvm/vmx.c

[PATCH 16/50] KVM: Purify x86_decode_insn() error case management

2007-12-23 Thread Avi Kivity
From: Laurent Vivier [EMAIL PROTECTED] The only valid case is on protected page access, other cases are errors. Signed-off-by: Laurent Vivier [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c | 10 +++--- 1 files changed, 7 insertions(+), 3

Re: [BUG 2.6.24-rc6-mm1] BUG() at check_irqs_on() in fs/buffer.c .

2007-12-23 Thread Ingo Molnar
* Tetsuo Handa [EMAIL PROTECTED] wrote: Hello. I encountered a BUG(). I didn't encounter this bug for 2.6.24-rc5-mm1 . I guess this bug was introduced between 2.6.24-rc5-mm1 and 2.6.24-rc6-mm1 . does the patch below help? Ingo --- include/asm-x86/desc.h |4 1 file

Re: [PATCH] USB Kconfig: Reorganize USB Kconfig Menu

2007-12-23 Thread Jan Engelhardt
On Dec 23 2007 16:15, Al Boldi wrote: -menuconfig USB_SUPPORT - bool USB support +config USB_SUPPORT + bool depends on HAS_IOMEM default y ---help--- With this patch, is USB_SUPPORT still needed? It is not visible (anymore), always is y and no other options select/depend

Re: [PATCH] USB Kconfig: Reorganize USB Kconfig Menu

2007-12-23 Thread Jan Engelhardt
On Dec 23 2007 16:25, Jan Engelhardt wrote: On Dec 23 2007 16:15, Al Boldi wrote: -menuconfig USB_SUPPORT - bool USB support +config USB_SUPPORT + bool depends on HAS_IOMEM default y ---help--- With this patch, is USB_SUPPORT still needed? It is not visible (anymore), always

[MIPS] MEM_SDREFCFG is not defined for Alchemy DB1550 (compile fail)

2007-12-23 Thread Alon Bar-Lev
Hello, When I have: CONFIG_MIPS_DB1550 CONFIG_SOC_AU1550 CONFIG_SOC_AU1X00 CONFIG_PM MEM_SDREFCFG is used at: arch/mips/au1000/common/power.c::pm_do_freq() While the MEM_SDREFCFG constant is declare only for CONFIG_SOC_AU1000, CONFIG_SOC_AU1500, CONFIG_SOC_AU1100 at:

Re: x86: Increase PCIBIOS_MIN_IO to 0x1500 to fix nForce 4 suspend-to-RAM

2007-12-23 Thread Rafael J. Wysocki
On Sunday, 23 of December 2007, Carlos Corbacho wrote: Fix suspend-to-RAM on nForce 4 (CK804) boards by increasing PCIBIOS_MIN_IO. Fixes kernel bugzilla #9528 Problem: Linus' patch (52ade9b3b97fd3bea42842a056fe0786c28d0555) to re-order suspend (and fix fall out from Rafael's earlier

Re: 2.6.24-rc6-mm1

2007-12-23 Thread Torsten Kaiser
On Dec 23, 2007 8:30 AM, Andrew Morton [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/ [snip] +agk-dm-dm-snapshot-use-uninitialized_var.patch +agk-dm-dm-raid1-handle-write-failures.patch

Re: [GIT PATCH] USB fixes for 2.6.24-rc5

2007-12-23 Thread Alan Stern
On Sun, 23 Dec 2007, Markus Rechberger wrote: Hi, did anyone already take care about: http://www.mail-archive.com/[EMAIL PROTECTED]/msg55641.html the fix seems to paper the issue although it happened with other people too now, so I wonder if there's any progress in that area?

Re: [PATCH 4/4] usb: libusual: locking cleanup

2007-12-23 Thread Daniel Walker
On Sat, 2007-12-22 at 23:37 -0800, Pete Zaitcev wrote: On Sat, 22 Dec 2007 09:01:50 -0800, Daniel Walker [EMAIL PROTECTED] wrote: Then in usu_probe_thread() your basically stopping it at the start of the function with a down(), and the up() is just ancillary .. So you could easily move

  1   2   3   4   5   >