[PATCH 2 of 4] paravirt: add hooks for ptep_modify_prot_start/commit

2008-06-16 Thread Jeremy Fitzhardinge
This patch adds paravirt-ops hooks in pv_mmu_ops for ptep_modify_prot_start and ptep_modify_prot_commit. This allows the hypervisor-specific backends to implement these in some more efficient way. Signed-off-by: Jeremy Fitzhardinge [EMAIL PROTECTED] --- arch/x86/kernel/paravirt.c |3 +++

[PATCH 0 of 4] mm+paravirt+xen: add pte read-modify-write abstraction (take 2)

2008-06-16 Thread Jeremy Fitzhardinge
Hi all, [ Change since last post: change name to ptep_modify_prot_, on the grounds that it isn't really a general pte-modification interface. ] This little series adds a new transaction-like abstraction for doing RMW updates to a pte, hooks it into paravirt_ops, and then makes use of it in

[PATCH 3 of 4] xen: implement ptep_modify_prot_start/commit

2008-06-16 Thread Jeremy Fitzhardinge
Xen has a pte update function which will update a pte while preserving its accessed and dirty bits. This means that ptep_modify_prot_start() can be implemented as a simple read of the pte value. The hardware may update the pte in the meantime, but ptep_modify_prot_commit() updates it while

[PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction

2008-06-16 Thread Jeremy Fitzhardinge
This patch adds an API for doing read-modify-write updates to a pte's protection bits which may race against hardware updates to the pte. After reading the pte, the hardware may asynchonously set the accessed or dirty bits on a pte, which would be lost when writing back the modified pte value.

[PATCH 4 of 4] xen: add mechanism to extend existing multicalls

2008-06-16 Thread Jeremy Fitzhardinge
Some Xen hypercalls accept an array of operations to work on. In general this is because its more efficient for the hypercall to the work all at once rather than as separate hypercalls (even batched as a multicall). This patch adds a mechanism (xen_mc_extend_args()) to allocate more argument

Re: [PATCH 0/5] paravirt clock source patches, #4

2008-06-16 Thread Avi Kivity
Avi Kivity wrote: This all looks pretty good. How do you want this to get into the kernel? [ note: fixed up kvm list address: s/-owner// ] Good question. The kvm patches have dependencies on not-yet merged bits, so they have to go through the kvm queue. The first two can also

Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction

2008-06-16 Thread Linus Torvalds
On Mon, 16 Jun 2008, Jeremy Fitzhardinge wrote: ptep_modify_prot_start() returns the current pte value, and puts the pte entry into a state where either the hardware will not update the pte, or if it does, the updates will be preserved on commit. ptep_modify_prot_commit() writes back

Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction

2008-06-16 Thread Hugh Dickins
On Mon, 16 Jun 2008, Linus Torvalds wrote: On Mon, 16 Jun 2008, Jeremy Fitzhardinge wrote: ptep_modify_prot_start() returns the current pte value, and puts the pte entry into a state where either the hardware will not update the pte, or if it does, the updates will be preserved on

Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction

2008-06-16 Thread Ingo Molnar
* Hugh Dickins [EMAIL PROTECTED] wrote: On Mon, 16 Jun 2008, Linus Torvalds wrote: On Mon, 16 Jun 2008, Jeremy Fitzhardinge wrote: ptep_modify_prot_start() returns the current pte value, and puts the pte entry into a state where either the hardware will not update the pte, or

Re: linux-next: Tree for June 13 (XEN)

2008-06-16 Thread Jens Axboe
On Sun, Jun 15 2008, Jeremy Fitzhardinge wrote: Jens Axboe wrote: On Fri, Jun 13 2008, Jeremy Fitzhardinge wrote: Randy Dunlap wrote: next-20080613 on x86_32 has lots of xen build errors like this: linux-next-20080613/arch/x86/xen/mmu.c: In function 'drop_mm_ref':

Re: [stable] [PATCH] virtio_net: Fix skb-csum_start computation (2.6.24, 2.6.25)

2008-06-16 Thread Greg KH
On Mon, Jun 16, 2008 at 02:41:41PM +1000, Rusty Russell wrote: From: Mark McLoughlin [EMAIL PROTECTED] hdr-csum_start is the offset from the start of the ethernet header to the transport layer checksum field. skb-csum_start is the offset from skb-head. skb_partial_csum_set() assumes that

Re: linux-next: Tree for June 13 (XEN)

2008-06-16 Thread Jeremy Fitzhardinge
Jens Axboe wrote: Thanks, I just folded it in with the existing patch to avoid breakage. That one doesn't have an ack from you though, so if you have done a full review of the x86 bits, I'd appreciate an ack on those from you :-) I've been testing it without problems, at least under Xen.

Re: [stable] [PATCH] virtio_net: Fix skb-csum_start computation (2.6.24, 2.6.25)

2008-06-16 Thread Rusty Russell
On Tuesday 17 June 2008 05:38:45 Greg KH wrote: On Mon, Jun 16, 2008 at 02:41:41PM +1000, Rusty Russell wrote: From: Mark McLoughlin [EMAIL PROTECTED] hdr-csum_start is the offset from the start of the ethernet header to the transport layer checksum field. skb-csum_start is the offset