[EMAIL PROTECTED] wrote: > Hi, > I would like to ask a question about how Qemu handle interrupt in user space. > I would like to understand how Qemu catch hardware interrupt generated by > real (host) peripheral. > I look at the Qemu code, (vl.c : main_loop and main_loop_wait) and I can't > identify where Qemu listens and catches the interrupts, for example, from > host NIC in order to pass to the guest NIC emulated. > > Could you help me? > >
This is really more suitable for qemu-devel. In general, qemu doesn't trap the real hardware interrupt; it waits for a signal (or select()) indicating that there are packets waiting to be received. Depending on how the emulated nic is configured, there may or may not be a virtual interrupt generated. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel