[Qemu-devel] Tracking memory dirtying in QEMU

2007-01-17 Thread Anthony Liguori

Howdy,

I've been working on migration for QEMU and have run into a snag.  I've 
got a non-live migration patch that works quite happily[1].  I modified 
the save/restore code to not seek at all, and then basically pipe a save 
over a pipe to a subprocess (usually, ssh).


Conceptually, adding support for live migration is really easy.  All I 
think I need to do is extend the current code, to have a pre-save hook 
that is activated before the VM is stopped.  This hook will be called 
until it says it's done and then the rest of the save/load handlers are 
invoked.  At first, I'm just going to do a pre-save handler for RAM 
which should significantly reduce the amount of down time.  I think the 
only other device we'll have to handle specially is the VGA memory but 
I'm happy to ignore that for now.


So, all I really need is to be able to track which pages are dirtied.  I 
also need the a method to reset the dirty map.


I started looking at adding another map like phys_ram_dirty.  That seems 
to work for some of the IO_MEM_RAM pages, but not all.  My initial 
thought is that all memory operations should go through one of the 
st[bwl]_phys functions but that doesn't seem to be the case.


Can anyone provide me with some advice on how to do this?  Am I right in 
assuming that all IO will go through some function?


[1] http://hg.codemonkey.ws/qemu-pq/?f=758c26c82f52;file=qemu-migration.diff

Thanks,

Anthony Liguori


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu block-raw.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/18 00:22:11

Modified files:
.  : block-raw.c 

Log message:
Fix CDROM permission check, by Kazu <[EMAIL PROTECTED]>.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/block-raw.c?cvsroot=qemu&r1=1.16&r2=1.17


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/hw gt64xxx.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 23:35:01

Modified files:
hw : gt64xxx.c 

Log message:
Big endian support for Gallileo, by Aurelien Jarno.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/gt64xxx.c?cvsroot=qemu&r1=1.1&r2=1.2


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu configure kqemu.c osdep.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 23:31:19

Modified files:
.  : configure kqemu.c osdep.c 

Log message:
Kqemu support for Solaris, by Ben Taylor.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/configure?cvsroot=qemu&r1=1.117&r2=1.118
http://cvs.savannah.gnu.org/viewcvs/qemu/kqemu.c?cvsroot=qemu&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/qemu/osdep.c?cvsroot=qemu&r1=1.14&r2=1.15


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/hw usb-uhci.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 23:08:17

Modified files:
hw : usb-uhci.c 

Log message:
Fix USB buffer size, by Herbert Xu.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/usb-uhci.c?cvsroot=qemu&r1=1.12&r2=1.13


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/slirp udp.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 22:47:40

Modified files:
slirp  : udp.c 

Log message:
Slirp UDP fix, by Jason Wessel.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/slirp/udp.c?cvsroot=qemu&r1=1.8&r2=1.9


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] [PATCH] darwin-user merge attempt - patch v2

2007-01-17 Thread Thiemo Seufer
Pierre d'Herbemont wrote:
> Here is an updated version of the patch:
> 
> It mostly fix i386-darwin-user on ppc which was broken in previous  
> patch.
[snip]
> >I hope to ear some feedback about inclusion in the qemu TOT.

make -C i386-linux-user all
make[1]: Entering directory `/home/ths/qemu/qemu-write/i386-linux-user'
gcc-3.4 -Wall -O2 -g -fno-strict-aliasing -I. -I.. 
-I/home/ths/qemu/qemu-write/target-i386 -I/home/ths/qemu/qemu-write 
-D__powerpc__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-I/home/ths/qemu/qemu-write/fpu -DHAS_AUDIO -I/home/ths/qemu/qemu-write/slirp  
-c -o main.o /home/ths/qemu/qemu-write/darwin-user/main.c
/home/ths/qemu/qemu-write/darwin-user/main.c:40:28: mach/mach_init.h: No such 
file or directory
/home/ths/qemu/qemu-write/darwin-user/main.c:41:25: mach/vm_map.h: No such file 
or directory
/home/ths/qemu/qemu-write/darwin-user/main.c:482: warning: return type defaults 
to `int'
/home/ths/qemu/qemu-write/darwin-user/main.c: In function `cpu_loop':
/home/ths/qemu/qemu-write/darwin-user/main.c:555: error: `BUS_NOOP' undeclared 
(first use in this function)
/home/ths/qemu/qemu-write/darwin-user/main.c:555: error: (Each undeclared 
identifier is reported only once
/home/ths/qemu/qemu-write/darwin-user/main.c:555: error: for each function it 
appears in.)
/home/ths/qemu/qemu-write/darwin-user/main.c:563: error: `SEGV_NOOP' undeclared 
(first use in this function)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/ths/qemu/qemu-write/i386-linux-user'
make: *** [subdir-i386-linux-user] Error 2

I figure it needs some more work to keep the Linux build happy.


Thiemo


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu Changelog

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 21:32:50

Modified files:
.  : Changelog 

Log message:
Note newsworthy changes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/Changelog?cvsroot=qemu&r1=1.125&r2=1.126


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] KQEMU docs: fedora udev rules

2007-01-17 Thread Tony Nelson
(Sending again after subscribing.)

In the KQEMU docs at 
section 2.2 "QEMU Accelerator Installation for Linux", the references to
/etc/udev/permissions.d/50-udev.permissions no longer apply to Fedora Core
4 and up, as permissions are now part of the regular rules.  Instead of a
line "kqemu:root:root:0666" in a .permissions file, the udev-rules entry
'KERNEL=="kqemu", NAME="%k", MDOE="0666"' is needed:

[]# echo 'KERNEL=="kqemu", NAME="%k", MDOE="0666"'\
>/etc/udev/rules.d/60-kqemu.rules

I've read that udev used to stop at the first matching rule, so at that
time, a "10-" rule would have been needed.  Udev now processes all matching
rules unless an OPTIONS="last_rule" is found, so this rule file must follow
50-udev.rules in order not to be overridden by its 'KERNEL=="*",
OWNER="root" GROUP="root", MODE="0600"'.

Don't confuse the udev rules with /etc/security/console.perms.d.
Console.perms* only apply to the user logged in at the console, while qemu
can be used remotely or at the console.  At present, on FC6, no rule in
console.perms* will match kqemu, so no rule needs to be added there.

Note that I am an absolute novice at writing udev rules, and that as I sent
this from my old Mac, I have retyped everything from the linux box.  This
is the only place I found to write about the web site / docs.  I'm
preparing to submit some scripts to automate kqemu setup before running
qemu (load kqemu tainting kernel, set /dev/shm size, set rtc), so tell me
if I'm off-topic.  Is there a bug reporter I should be using instead?
-- 

TonyN.:'   
  '  


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/target-mips TODO

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 20:03:15

Added files:
target-mips: TODO 

Log message:
Keep track of mips related issues.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/TODO?cvsroot=qemu&rev=1.1


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/hw mips_malta.c

2007-01-17 Thread Thiemo Seufer
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Thiemo Seufer  07/01/17 15:15:52

Modified files:
hw : mips_malta.c 

Log message:
Disable Malta floppy controller for now, by Aurelien Jarno.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/mips_malta.c?cvsroot=qemu&r1=1.1&r2=1.2


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Xen-devel] Re: [Qemu-devel] qemu/usb-uhci: Data buffer is too small

2007-01-17 Thread Herbert Xu
Aurelien Jarno <[EMAIL PROTECTED]> wrote:
>
> This patch does not apply to the current CVS, as the variable buf has
> been moved into a structure. If the problem is still there, I guess the
> patch below should be applied instead.

Yes, unless someone has added a run-time check to cap the length to
1280 bytes then this is still needed.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


Re: [Qemu-devel] qemu/usb-uhci: Data buffer is too small

2007-01-17 Thread Aurelien Jarno
On Thu, Nov 30, 2006 at 04:41:41PM +1100, Herbert Xu wrote:
> Hi:
> 
> [QEMU] usb-uhci: Data buffer is too small
> 
> The data buffer is only 1280 bytes long but the user-supplied length
> can be as large as 0x7ff.  This patch extends the buffer to 2048
> bytes.
> 

This patch does not apply to the current CVS, as the variable buf has
been moved into a structure. If the problem is still there, I guess the
patch below should be applied instead.

Index: hw/usb-uhci.c
===
RCS file: /sources/qemu/qemu/hw/usb-uhci.c,v
retrieving revision 1.12
diff -u -d -p -r1.12 usb-uhci.c
--- hw/usb-uhci.c   12 Aug 2006 01:04:27 -  1.12
+++ hw/usb-uhci.c   17 Jan 2007 10:06:16 -
@@ -87,7 +87,7 @@ typedef struct UHCIState {
is to allow multiple pending requests.  */
 uint32_t async_qh;
 USBPacket usb_packet;
-uint8_t usb_buf[1280];
+uint8_t usb_buf[2048];
 } UHCIState;
 
 typedef struct UHCI_TD {


-- 
  .''`.  Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' :  Debian developer   | Electrical Engineer
 `. `'   [EMAIL PROTECTED] | [EMAIL PROTECTED]
   `-people.debian.org/~aurel32 | www.aurel32.net


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] Re: qemu/target-i386 ops_sse.h translate.c

2007-01-17 Thread Ludovic Drolez

Fabrice Bellard wrote:

CVSROOT:/sources/qemu
Module name:qemu
Changes by: Fabrice Bellard  07/01/16 19:28:58

Modified files:
	target-i386: ops_sse.h translate.c 


Log message:
fixed movd mmx/sse insn



Many thanks !

The SLES 10 amd64 seems to work much better now !

Cheers,


--
Ludovic DROLEZ  Linbox / Free&ALter Soft
http://lrs.linbox.org


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel


[Qemu-devel] qemu/hw arm_boot.c

2007-01-17 Thread Paul Brook
CVSROOT:/sources/qemu
Module name:qemu
Changes by: Paul Brook  07/01/17 08:59:27

Modified files:
hw : arm_boot.c 

Log message:
ARM boot fix (Jason Wessel).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/hw/arm_boot.c?cvsroot=qemu&r1=1.2&r2=1.3


___
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel