Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Anthony Liguori
On Mon, 2007-08-27 at 18:45 +0300, Avi Kivity wrote: > Anthony Liguori wrote: > > Since a hypercall may span two pages and is a gva, we need a function to > > write > > to a gva that may span multiple pages. emulator_write_phys() seems like the > > logical choice for this. > > > > @@ -962,8 +962

Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Avi Kivity
Anthony Liguori wrote: On Mon, 2007-08-27 at 20:26 +0300, Avi Kivity wrote: Anthony Liguori wrote: On Mon, 2007-08-27 at 18:45 +0300, Avi Kivity wrote: Anthony Liguori wrote: Since a hypercall may span two pages and is a gva, we need a function to write to a gv

Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Anthony Liguori
On Mon, 2007-08-27 at 20:26 +0300, Avi Kivity wrote: > Anthony Liguori wrote: > > On Mon, 2007-08-27 at 18:45 +0300, Avi Kivity wrote: > > > >> Anthony Liguori wrote: > >> > >>> Since a hypercall may span two pages and is a gva, we need a function to > >>> write > >>> to a gva that may sp

Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Avi Kivity
Anthony Liguori wrote: On Mon, 2007-08-27 at 18:45 +0300, Avi Kivity wrote: Anthony Liguori wrote: Since a hypercall may span two pages and is a gva, we need a function to write to a gva that may span multiple pages. emulator_write_phys() seems like the logical choice for this. @@ -96

Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Anthony Liguori
On Mon, 2007-08-27 at 18:45 +0300, Avi Kivity wrote: > Anthony Liguori wrote: > > Since a hypercall may span two pages and is a gva, we need a function to > > write > > to a gva that may span multiple pages. emulator_write_phys() seems like the > > logical choice for this. > > > > @@ -962,8 +962

Re: [PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Avi Kivity
Anthony Liguori wrote: Since a hypercall may span two pages and is a gva, we need a function to write to a gva that may span multiple pages. emulator_write_phys() seems like the logical choice for this. @@ -962,8 +962,35 @@ static int emulator_write_std(unsigned long addr,

[PATCH 1/3] Implement emulator_write_phys()

2007-08-27 Thread Anthony Liguori
Since a hypercall may span two pages and is a gva, we need a function to write to a gva that may span multiple pages. emulator_write_phys() seems like the logical choice for this. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c inde