Re: [Qemu-devel] [PATCH] rtl8139: honor RxOverflow flag in can_receive method

2012-01-31 Thread Igor Kovalenko
2012/1/30 Fernando Luis Vázquez Cao : > Some drivers (Linux' 8139too among them) rely on the NIC injecting an > interrupt > in the event of a receive buffer overflow and, accordingly, set the RxOverflow > bit in the interrupt mask. Unfortunately rtl8139's can_receive method ignores > the RxOverflo

Re: [Qemu-devel] [PATCH] rtl8139: honor RxOverflow flag in can_receive method

2012-01-31 Thread Igor Kovalenko
tr - s->RxBufAddr, >                      s->RxBufferSize); > -        return (avail == 0 || avail >= 1514); > +        return (avail == 0 || avail >= 1514 || (s->IntrMask & RxOverflow)); >     } >  } > > > Acked-by: Igor Kovalenko -- Kind regards, Igor V. Kovalenko

Re: [Qemu-devel] [PATCH] sparc64: fix wrpstate and wrtl on delay slot

2011-04-30 Thread Igor Kovalenko
On Sat, Apr 30, 2011 at 7:42 PM, Blue Swirl wrote: > Use TCG local to work around TCG register flush due to a branch. > > Thanks to Artyom Tarasenko, Igor Kovalenko and Aurelien Jarno. > > Signed-off-by: Blue Swirl > --- > I analyzed the call tree in target-sparc/translat

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-26 Thread Igor Kovalenko
On Wed, Apr 27, 2011 at 12:07 AM, Blue Swirl wrote: > On Tue, Apr 26, 2011 at 10:07 PM, Igor Kovalenko > wrote: >> On Tue, Apr 26, 2011 at 10:36 PM, Blue Swirl wrote: >>> On Tue, Apr 26, 2011 at 8:02 PM, Artyom Tarasenko >>> wrote: >>>> On Mon

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-26 Thread Igor Kovalenko
On Tue, Apr 26, 2011 at 10:36 PM, Blue Swirl wrote: > On Tue, Apr 26, 2011 at 8:02 PM, Artyom Tarasenko wrote: >> On Mon, Apr 25, 2011 at 10:29 PM, Aurelien Jarno >> wrote: >>> On Fri, Apr 22, 2011 at 06:14:06PM +0400, Igor Kovalenko wrote: >>>> On F

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-26 Thread Igor Kovalenko
On Tue, Apr 26, 2011 at 8:26 PM, Artyom Tarasenko wrote: > On Tue, Apr 26, 2011 at 5:34 AM, Igor Kovalenko > wrote: >> On Tue, Apr 26, 2011 at 12:29 AM, Aurelien Jarno >> wrote: >>> On Fri, Apr 22, 2011 at 06:14:06PM +0400, Igor Kovalenko wrote: >>>> O

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-25 Thread Igor Kovalenko
On Tue, Apr 26, 2011 at 12:29 AM, Aurelien Jarno wrote: > On Fri, Apr 22, 2011 at 06:14:06PM +0400, Igor Kovalenko wrote: >> On Fri, Apr 22, 2011 at 2:39 AM, Laurent Desnogues >> wrote: >> > On Thu, Apr 21, 2011 at 9:45 PM, Igor Kovalenko >> > wrote: >

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-22 Thread Igor Kovalenko
On Fri, Apr 22, 2011 at 2:39 AM, Laurent Desnogues wrote: > On Thu, Apr 21, 2011 at 9:45 PM, Igor Kovalenko > wrote: >> On Thu, Apr 21, 2011 at 7:44 PM, Laurent Desnogues >> wrote: >>> On Thu, Apr 21, 2011 at 4:57 PM, Artyom Tarasenko >>> wrote: >&g

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-21 Thread Igor Kovalenko
On Thu, Apr 21, 2011 at 7:44 PM, Laurent Desnogues wrote: > On Thu, Apr 21, 2011 at 4:57 PM, Artyom Tarasenko wrote: >> On Tue, Apr 12, 2011 at 4:14 AM, Igor Kovalenko >> wrote: >>>>> Do you have public test case? >>>>> It is possible to code

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-11 Thread Igor Kovalenko
On Mon, Apr 11, 2011 at 9:53 PM, Artyom Tarasenko wrote: > > Can do it, but I'd like to understand first what we are looking for. > How does the main works in this case? Is it something like following? > > translate {brz,pn ; wrpr} -> optimize -> execute ->translate {retl ; > ...} ->optimize -> ex

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-10 Thread Igor Kovalenko
On Mon, Apr 11, 2011 at 12:00 AM, Artyom Tarasenko wrote: > On Sun, Apr 10, 2011 at 9:41 PM, Igor Kovalenko > wrote: >> On Sun, Apr 10, 2011 at 11:37 PM, Artyom Tarasenko >> wrote: >>> On Sun, Apr 10, 2011 at 8:52 PM, Igor Kovalenko >>> wrote: >>&

Re: [Qemu-devel] tcg/tcg.c:1892: tcg fatal error

2011-04-10 Thread Igor Kovalenko
On Sun, Apr 10, 2011 at 10:35 PM, Artyom Tarasenko wrote: > On Sun, Apr 10, 2011 at 7:57 PM, Blue Swirl wrote: >> On Sun, Apr 10, 2011 at 8:48 PM, Artyom Tarasenko >> wrote: >>> On Sun, Apr 10, 2011 at 4:44 PM, Blue Swirl wrote: On Sun, Apr 10, 2011 at 5:09 PM, Artyom Tarasenko wro

Re: [Qemu-devel] [PATCH 4/5] sparc64: fix mmu context at trap levels above zero

2011-04-04 Thread Igor Kovalenko
On Mon, Apr 4, 2011 at 10:37 PM, Blue Swirl wrote: > On Mon, Apr 4, 2011 at 8:25 PM, Artyom Tarasenko wrote: >> On Sat, May 22, 2010 at 12:52 PM, Igor V. Kovalenko >> wrote: >>> --- a/target-sparc/helper.c >>> +++ b/target-sparc/helper.c >>> @@ -572,6 +572,23 @@ static int get_physical_address(C

[Qemu-devel] Re: [PATCH v6 1/3] rtl8139: cleanup FCS calculation

2011-03-10 Thread Igor Kovalenko
On Fri, Mar 11, 2011 at 3:35 AM, Benjamin Poirier wrote: > clean out ifdef's around ethernet checksum calculation > > Signed-off-by: Benjamin Poirier > Cc: Igor V. Kovalenko > Cc: Jason Wang > Cc: Michael S. Tsirkin > Cc: Blue Swirl > --- >  hw/rtl8139.c |   20 +++- >  1 files

[Qemu-devel] Re: [PATCH v6 1/3] rtl8139: cleanup FCS calculation

2011-03-10 Thread Igor Kovalenko
On Fri, Mar 11, 2011 at 3:35 AM, Benjamin Poirier wrote: > clean out ifdef's around ethernet checksum calculation > > Signed-off-by: Benjamin Poirier > Cc: Igor V. Kovalenko > Cc: Jason Wang > Cc: Michael S. Tsirkin > Cc: Blue Swirl > --- >  hw/rtl8139.c |   20 +++- >  1 files

Re: [Qemu-devel] [PATCH] pcibus_get_dev_path: correct pci device path construction

2011-01-31 Thread Igor Kovalenko
On Mon, Jan 31, 2011 at 5:56 PM, Mark Cave-Ayland wrote: > On 18/01/11 21:10, Igor V. Kovalenko wrote: > >> From: Igor V. Kovalenko >> >> - fix snprintf off by one >>   pci domain and slot number formatting snprintf calls >>   require extra space for trailing null character >> >>   without this ch

Re: [Qemu-devel] gdb for sparc64?

2010-09-03 Thread Igor Kovalenko
On Fri, Sep 3, 2010 at 1:11 PM, Mark Cave-Ayland wrote: > Artyom Tarasenko wrote: > >> Does any gdb version work with current qemu-system-sparc64 ? >> >> I tried 7.1 and 6.8 with --target=sparc64-linux and --target=sparc64 >> And result seems to be pretty much the same: >> >> GNU gdb 6.8 >> Copyri

[Qemu-devel] Re: [PATCH 3/8] sparc64: fix 32bit load sign extension

2010-06-03 Thread Igor Kovalenko
On Thu, Jun 3, 2010 at 7:42 PM, Paolo Bonzini wrote: > On 06/03/2010 05:25 PM, Alexander Graf wrote: >> >> Am 03.06.2010 um 15:18 schrieb Paolo Bonzini : >> >>> On 06/01/2010 10:12 PM, Igor V. Kovalenko wrote: From: Igor V. Kovalenko - change return type of ldl_* to uint32_t to

Re: [Qemu-devel] [PATCH 2/8] sparc64: fix missing address masking

2010-06-02 Thread Igor Kovalenko
On Wed, Jun 2, 2010 at 5:47 PM, Richard Henderson wrote: > On 06/01/2010 09:29 PM, Igor Kovalenko wrote: >> On Wed, Jun 2, 2010 at 12:44 AM, Richard Henderson wrote: >>> On 06/01/2010 01:12 PM, Igor V. Kovalenko wrote: >>>> +    if ((env->pstate &

Re: [Qemu-devel] [PATCH 5/8] sparc64: use symbolic name for MMU index

2010-06-02 Thread Igor Kovalenko
On Wed, Jun 2, 2010 at 8:16 PM, Blue Swirl wrote: > On Tue, Jun 1, 2010 at 8:12 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> Signed-off-by: Igor V. Kovalenko >> --- >>  target-sparc/op_helper.c |   28 >>  1 files changed, 16 insertions(+), 12 dele

Re: [Qemu-devel] [PATCH 2/8] sparc64: fix missing address masking

2010-06-02 Thread Igor Kovalenko
On Wed, Jun 2, 2010 at 8:46 PM, Andreas Färber wrote: > Am 02.06.2010 um 18:10 schrieb Blue Swirl: > >> On Wed, Jun 2, 2010 at 1:47 PM, Richard Henderson wrote: >>> >>> On 06/01/2010 09:29 PM, Igor Kovalenko wrote: >>>> >>>> On Wed,

Re: [Qemu-devel] [PATCH 2/8] sparc64: fix missing address masking

2010-06-01 Thread Igor Kovalenko
On Wed, Jun 2, 2010 at 12:44 AM, Richard Henderson wrote: > On 06/01/2010 01:12 PM, Igor V. Kovalenko wrote: >> +    if ((env->pstate & PS_AM) && is_translating_asi(asi)) { >> +        addr &= 0xULL; >> +    } > > I suggest that these be written instead as > >  if (is_translating_asi(asi))

Re: [Qemu-devel] [PATCH] sparc64: fix 128-bit atomic load from nucleus context

2010-05-28 Thread Igor Kovalenko
On Sat, May 29, 2010 at 12:30 AM, Blue Swirl wrote: > On Fri, May 28, 2010 at 9:48 AM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> Signed-off-by: Igor V. Kovalenko >> --- >>  sparc-dis.c              |    2 ++ >>  target-sparc/op_helper.c |   10 +- >>  2 files changed, 7

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-28 Thread Igor Kovalenko
On Fri, May 28, 2010 at 12:43 PM, Mark Cave-Ayland wrote: > Igor Kovalenko wrote: > >> With many debian iso images I consistently get scrolling blanks after >> the following line on qemu video console: >> >> io sched cfq registered (default) >> >>

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-27 Thread Igor Kovalenko
On Thu, May 27, 2010 at 8:57 PM, Mark Cave-Ayland wrote: > Blue Swirl wrote: > >> On Tue, May 25, 2010 at 12:12 PM, Igor V. Kovalenko >> wrote: >>> >>> One code cleanup and another pci host bridge remap change, >>> the latter requires qemu update with patch already posted to qemu list. >>> >>> v0

[Qemu-devel] Re: [OpenBIOS] [PATCH 0/3] sparc64 cleanups v1

2010-05-27 Thread Igor Kovalenko
On Fri, May 28, 2010 at 12:42 AM, Blue Swirl wrote: > On Thu, May 27, 2010 at 4:57 PM, Mark Cave-Ayland > wrote: >> Blue Swirl wrote: >> >>> On Tue, May 25, 2010 at 12:12 PM, Igor V. Kovalenko >>> wrote: One code cleanup and another pci host bridge remap change, the latter require

Re: [Qemu-devel] [PATCH, RFC 3/4] Implement byte swapped MMIO type

2010-05-25 Thread Igor Kovalenko
On Mon, May 24, 2010 at 12:34 AM, Blue Swirl wrote: > BROKEN > > Signed-off-by: Blue Swirl > --- >  cpu-common.h       |    3 +- >  softmmu_template.h |   69 > ++-- >  2 files changed, 63 insertions(+), 9 deletions(-) Changes to io_read and io_wri

Re: [Qemu-devel] [PATCH 2/2] sparc64: clean up pci bridge map

2010-05-25 Thread Igor Kovalenko
On Tue, May 25, 2010 at 11:24 PM, Blue Swirl wrote: > On Tue, May 25, 2010 at 12:09 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> - remove unused host state and store pci bus pointer only >> - do not map host state access into unused 1fe.1000 range >> - reorder pci region r

Re: [Qemu-devel] [PATCH] sparc64: clean up pci bridge map

2010-05-25 Thread Igor Kovalenko
On Tue, May 25, 2010 at 3:56 PM, Artyom Tarasenko wrote: > 2010/5/25 Igor V. Kovalenko : >> From: Igor V. Kovalenko >> >> - remove unused host state and store pci bus pointer only >> - do not map host state access into unused 1fe.1000 range >> - reorder pci region registration >> - assign pci

[Qemu-devel] Re: sparc64 lazy conditional codes evaluation

2010-05-07 Thread Igor Kovalenko
On Thu, May 6, 2010 at 10:51 PM, Blue Swirl wrote: > On 5/5/10, Igor Kovalenko wrote: >> On Wed, May 5, 2010 at 12:21 AM, Blue Swirl wrote: >>  > On 5/3/10, Igor Kovalenko wrote: >>  >> On Mon, May 3, 2010 at 11:54 PM, Blue Swirl wrote: >>  &g

[Qemu-devel] Re: sparc64 lazy conditional codes evaluation

2010-05-05 Thread Igor Kovalenko
On Wed, May 5, 2010 at 12:21 AM, Blue Swirl wrote: > On 5/3/10, Igor Kovalenko wrote: >> On Mon, May 3, 2010 at 11:54 PM, Blue Swirl wrote: >>  > On 5/3/10, Igor Kovalenko wrote: >>  >> On Mon, May 3, 2010 at 11:24 PM, Blue Swirl wrote: >>  &g

Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-05 Thread Igor Kovalenko
On Tue, May 4, 2010 at 12:29 AM, Blue Swirl wrote: > On 5/3/10, Igor Kovalenko wrote: >> On Tue, May 4, 2010 at 12:06 AM, Blue Swirl wrote: >>  > On 5/3/10, Igor V. Kovalenko wrote: >>  >> From: Igor V. Kovalenko >>  >> >>  >>  - match gl

Re: [Qemu-devel] [PATCH 2/3] sparc64: implement global translation table entries

2010-05-03 Thread Igor Kovalenko
On Tue, May 4, 2010 at 12:06 AM, Blue Swirl wrote: > On 5/3/10, Igor V. Kovalenko wrote: >> From: Igor V. Kovalenko >> >>  - match global tte against any context >>  - show global tte in MMU dump >> >>  Signed-off-by: Igor V. Kovalenko > > I get this error: >  CC    sparc64-softmmu/op_helper.o

[Qemu-devel] Re: sparc64 lazy conditional codes evaluation

2010-05-03 Thread Igor Kovalenko
On Mon, May 3, 2010 at 11:54 PM, Blue Swirl wrote: > On 5/3/10, Igor Kovalenko wrote: >> On Mon, May 3, 2010 at 11:24 PM, Blue Swirl wrote: >>  > On 5/3/10, Igor Kovalenko wrote: >>  >> Hi! >>  >> >>  >>  There is an issue with lazy con

[Qemu-devel] Re: sparc64 lazy conditional codes evaluation

2010-05-03 Thread Igor Kovalenko
On Mon, May 3, 2010 at 11:24 PM, Blue Swirl wrote: > On 5/3/10, Igor Kovalenko wrote: >> Hi! >> >>  There is an issue with lazy conditional codes evaluation where >>  we return from trap handler with mismatching conditionals. >> >>  I seldom reproduce

[Qemu-devel] sparc64 lazy conditional codes evaluation

2010-05-03 Thread Igor Kovalenko
Hi! There is an issue with lazy conditional codes evaluation where we return from trap handler with mismatching conditionals. I seldom reproduce it here when dragging qemu window while machine is working through silo initialization. I use gentoo minimal cd install-sparc64-minimal-20100322.iso but

Re: [Qemu-devel] [PATCH] rewrote timer implementation for rtl8139.

2010-02-19 Thread Igor Kovalenko
On Sat, Feb 20, 2010 at 2:26 AM, Anthony Liguori wrote: > On 02/19/2010 04:22 PM, Alexander Graf wrote: >> >> On 19.02.2010, at 22:50, Anthony Liguori wrote: >> >> >>> >>> On 02/16/2010 02:35 AM, Frediano Ziglio wrote: >>> Add a QEMU timer only when needed (timeout status not set, timeou

[Qemu-devel] Re: [PATCH] rewrote timer implementation for rtl8139. Add a QEMU timer only when needed (timeout status not set, timeout irq wanted and timer set).

2010-02-09 Thread Igor Kovalenko
On Tue, Feb 9, 2010 at 11:58 AM, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > --- >  hw/rtl8139.c |  136 ++--- >  1 files changed, 81 insertions(+), 55 deletions(-) > Looks good. -- Kind regards, Igor V. Kovalenko

Re: [Qemu-devel] [PATCH] rtl8139 timer interrupt rewrote

2010-02-07 Thread Igor Kovalenko
On Sun, Feb 7, 2010 at 6:22 PM, Frediano Ziglio wrote: > rewrote timer implementation for rtl8139. Add a QEMU > timer only when needed (timeout status not set, timeout irq wanted and > timer set). > > Signed-off-by: Frediano Ziglio > -- > diff --git a/hw/rtl8139.c b/hw/rtl8139.c > index f04dd54..

Re: [Qemu-devel] [PATCH] sparc64: reimplement tick timers v3

2010-01-26 Thread Igor Kovalenko
On Fri, Jan 22, 2010 at 11:32 PM, Blue Swirl wrote: > On Tue, Jan 19, 2010 at 10:25 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> sparc64 timer has tick counter which can be set and read, >> and tick compare value used as deadline to fire timer interrupt. >> The timer is not us

Re: [Qemu-devel] [PATCH] sparc64: reimplement tick timers v2

2010-01-19 Thread Igor Kovalenko
On Tue, Jan 19, 2010 at 9:44 PM, Blue Swirl wrote: > On Mon, Jan 18, 2010 at 10:28 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> sparc64 timer has tick counter which can be set and read, >> and tick compare value used as deadline to fire timer interrupt. >> The timer is not use

[Qemu-devel] Re: [PATCH 1/6] Make config space accessor host bus trapable

2010-01-11 Thread Igor Kovalenko
On Tue, Jan 12, 2010 at 12:29 AM, Blue Swirl wrote: > On Sun, Jan 10, 2010 at 6:41 PM, Blue Swirl wrote: >> On Sun, Jan 3, 2010 at 7:18 PM, Blue Swirl wrote: >>> On Sun, Jan 3, 2010 at 6:06 PM, Michael S. Tsirkin wrote: On Sun, Jan 03, 2010 at 06:50:15PM +0100, Alexander Graf wrote: >

Re: [Qemu-devel] [PATCH 8/9] sparc64: interrupt trap handling

2010-01-07 Thread Igor Kovalenko
On Wed, Jan 6, 2010 at 8:00 PM, Blue Swirl wrote: > On Tue, Jan 5, 2010 at 11:19 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> cpu_check_irqs >> - handle SOFTINT register TICK and STICK timer bits >> - only check interrupt levels greater than PIL value >> - handle preemption by

Re: [Qemu-devel] [PATCH V12 24/27] pm_smbus: remove #ifdef DEBUG.

2010-01-06 Thread Igor Kovalenko
On Thu, Jan 7, 2010 at 2:51 AM, Isaku Yamahata wrote: > On Wed, Jan 06, 2010 at 12:42:28PM +0100, Stefan Weil wrote: >> Isaku Yamahata schrieb: >> > remove #ifdef DEBUG by using macro. >> > >> > Signed-off-by: Isaku Yamahata >> > Acked-by: Gerd Hoffmann >> > --- >> > hw/pm_smbus.c | 21 +

Re: [Qemu-devel] [PATCH 6/9] sparc64: clear exception_index with -1 value

2010-01-06 Thread Igor Kovalenko
On Thu, Jan 7, 2010 at 2:29 AM, Artyom Tarasenko wrote: > What's the effect of the patch? Don't we need it for sparc32 too? The > code looks similar. > > 2010/1/6 Blue Swirl : >> Thanks, applied. >> >> On Tue, Jan 5, 2010 at 11:19 PM, Igor V. Kovalenko >> wrote: >>> From: Igor V. Kovalenko >>> >

Re: [Qemu-devel] [PATCH 9/9] sparc64: reimplement tick timers

2010-01-06 Thread Igor Kovalenko
On Wed, Jan 6, 2010 at 8:31 PM, Blue Swirl wrote: > On Tue, Jan 5, 2010 at 11:47 PM, Igor Kovalenko > wrote: >> sparc64 timer has tick counter which can be set and read, >> and tick compare value used as deadline to fire timer interrupt. >> The timer is not used as

[Qemu-devel] [PATCH 9/9] sparc64: reimplement tick timers

2010-01-05 Thread Igor Kovalenko
sparc64 timer has tick counter which can be set and read, and tick compare value used as deadline to fire timer interrupt. The timer is not used as periodic timer, instead deadline is set each time new timer interrupt is needed. This change implements sparc64 timers without periodic timers. It is

[Qemu-devel] Re: Bug in Sparc64/IDE Code

2009-12-13 Thread Igor Kovalenko
On Sun, Dec 13, 2009 at 10:06 PM, Juan Quintela wrote: > Igor Kovalenko wrote: >> On Sat, Dec 12, 2009 at 3:18 PM, Igor Kovalenko >> wrote: >>> On Sat, Dec 12, 2009 at 1:12 PM, Blue Swirl wrote: >>>> On Fri, Dec 11, 2009 at 10:16 PM, Nick Couchman >&g

Re: [Qemu-devel] [PATCH] workaround for cmd646 bmdma register access while no dma is active

2009-12-13 Thread Igor Kovalenko
On Sun, Dec 13, 2009 at 6:50 PM, Blue Swirl wrote: > On Sun, Dec 13, 2009 at 12:23 PM, Igor V. Kovalenko > wrote: >> From: Igor V. Kovalenko >> >> This is a workaround only, and is a partial revert >> of a few changes to BMDMAState which removed pci_dev >> field on the way. >> >> - cmd646 pci_fr

Re: [Qemu-devel] Bug in Sparc64/IDE Code

2009-12-12 Thread Igor Kovalenko
On Sat, Dec 12, 2009 at 3:18 PM, Igor Kovalenko wrote: > On Sat, Dec 12, 2009 at 1:12 PM, Blue Swirl wrote: >> On Fri, Dec 11, 2009 at 10:16 PM, Nick Couchman >> wrote: >>> In working to try to get Sparc64 system emulation developed, we seem to >>> have run i

Re: [Qemu-devel] Bug in Sparc64/IDE Code

2009-12-12 Thread Igor Kovalenko
On Sat, Dec 12, 2009 at 1:12 PM, Blue Swirl wrote: > On Fri, Dec 11, 2009 at 10:16 PM, Nick Couchman > wrote: >> In working to try to get Sparc64 system emulation developed, we seem to have >> run into an issue with the IDE code in Qemu.  The OpenBIOS folks have been >> working quite a few iss

Re: [Qemu-devel] qemu/tcg/sparc

2008-02-28 Thread Igor Kovalenko
On Wed, Feb 27, 2008 at 8:51 PM, Blue Swirl <[EMAIL PROTECTED]> wrote: > CVSROOT:/cvsroot/qemu > Module name:qemu > Changes by: Blue Swirl 08/02/27 17:51:14 > > New directory: > tcg/sparc > I found a couple of typos with register references, please apply the following

Re: [Qemu-devel] [PATCH] simplify storing temporaries in env structure regardless of host/target long size

2008-02-12 Thread Igor Kovalenko
On Feb 12, 2008 10:12 PM, Blue Swirl <[EMAIL PROTECTED]> wrote: > On 2/12/08, Igor Kovalenko <[EMAIL PROTECTED]> wrote: > > This patch separates decision about storing temporaries in env > > structure from target long size by introducing a macro > > QEMU_TEMPORARY

[Qemu-devel] [PATCH] simplify storing temporaries in env structure regardless of host/target long size

2008-02-12 Thread Igor Kovalenko
This patch separates decision about storing temporaries in env structure from target long size by introducing a macro QEMU_TEMPORARY_IN_ENV Makes it a bit easier to work around register allocation problems. By default there is no change to generated code. -- Kind regards, Igor V. Kovalenko qemu

[Qemu-devel] [PATCH] implement more INQUIRY command replies for scsi disk

2008-01-28 Thread Igor Kovalenko
>From what I see there are more bits of scsi INQUIRY command which are >mandatory, and this patch adds two mandatory and one optional scsi VPD page to that command reply. Also handled optional "command support data" request, with error reply. Please apply qemu-scsi-disk-inquiry-20080129-2.patch a

Re: [Qemu-devel] qemu block-vvfat.c block.c console.c dyngen.c e...

2007-11-20 Thread Igor Kovalenko
On Nov 18, 2007 4:44 AM, Paul Brook <[EMAIL PROTECTED]> wrote: > CVSROOT:/sources/qemu > Module name:qemu > Changes by: Paul Brook 07/11/18 01:44:38 > > Modified files: > . : block-vvfat.c block.c console.c dyngen.c > elf_ops.h i386

Re: [Qemu-devel] Trying to Understand QEMU's Low Level Functionality ...

2007-10-23 Thread Igor Kovalenko
On 10/24/07, Atoosaah S <[EMAIL PROTECTED]> wrote: > I'm using qemu version 0.8.2 on linux. > > I'm currently successful in creating the result.txt (with the command: prof > /intsall_path/qemu gmon.out > result.txt), but the call graph created does > not show my functions of interest. > > For examp

Re: [Qemu-devel] [PATCH] RTL8139 rx-path fixes

2007-07-17 Thread Igor Kovalenko
On 7/17/07, Tim Deegan <[EMAIL PROTECTED]> wrote: Two small changes: fix the buffer wraparound code for 64k ring-buffers, and enable (and fix) the crc32 checksum calculation. These changes are needed for the the Realtek driver that shipped with 32-bit Vista. Fix for crc32 first argument may b

Re: [Qemu-devel] linux-user target

2007-04-18 Thread Igor Kovalenko
On 4/19/07, Stuart Anderson <[EMAIL PROTECTED]> wrote: On Wed, 18 Apr 2007, Igor Kovalenko wrote: > This should be solved for x86_64 host with "-mtune=nocona" patch > posted a while ago. I'll go dig that up. Here, http://lists.gnu.org/archive/html/qemu-devel/20

Re: [Qemu-devel] linux-user target

2007-04-18 Thread Igor Kovalenko
On 4/18/07, Stuart Anderson <[EMAIL PROTECTED]> wrote: On Wed, 18 Apr 2007, J. Mayer wrote: > You're right: I think all TLS specific code is located in the glibc. In my last tracing through qemu.log, I did check for r2 references, and there was one store near the beginning that looked like what

Re: [Qemu-devel] Redundant repz prefixes in generated amd64 code

2007-03-16 Thread Igor Kovalenko
On 3/16/07, Julian Seward <[EMAIL PROTECTED]> wrote: I'm seeing redundant repz (0xF3) prefixes in generated code, typically just before jumps: : repz mov $0xe07f,%eax : mov%eax,0x20(%rbp) : lea-25168302(%rip),%ebx # 0xaf0420 : retq : mov-25168245(%rip),%eax # 0xaf0460 : jm

Re: [Qemu-devel] Updated PATCH: hw/rtl8139.c for Sparc (BigEndian) Hosts

2007-03-13 Thread Igor Kovalenko
On 3/13/07, Ben Taylor <[EMAIL PROTECTED]> wrote: Patch 1: qemu-rtl8139-bigend.diff This fixes the big-endian problem with the hw/rtl8139.c on a Sparc host. I updated the patch to remove one extra le32 conversion found in rtl8139_TxAddr_read which is called from i/o read callback. -- Kind

Re: [Qemu-devel] Solaris amd64 patch

2007-02-02 Thread Igor Kovalenko
On 2/2/07, Ben Taylor <[EMAIL PROTECTED]> wrote: This patch (by Martin Bochnig [EMAIL PROTECTED]) fixes a register allocation issue on Solaris. Some supporting evidence and the original patch were posted at: http://www.opensolaris.org/jive/thread.jspa?threadID=22392&tstart=0 This also make

Re: [Qemu-devel] Re: weird slirp problems (dns lookups stopped working, and maybe more) [PATCH]

2007-01-15 Thread Igor Kovalenko
On 1/12/07, Jason Wessel <[EMAIL PROTECTED]> wrote: I posted a similar patch last year, but it was not accepted for some reason. Making this change allows UDP nfs to work to a remote file server as well. I would recommend, making one further change as included in this patch. It allows KGDBOE t

Re: [Qemu-devel] qemu qemu-doc.texi vl.c vl.h hw/pc.c hw/sun4m.c

2007-01-09 Thread Igor Kovalenko
On 1/7/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote: CVSROOT:/sources/qemu Module name:qemu Changes by: Thiemo Seufer 07/01/07 20:42:14 Modified files: . : qemu-doc.texi vl.c vl.h hw : pc.c sun4m.c Log message: Revert -disk p

[Qemu-devel] [PATCH] make adb_pci.c buildable

2006-12-22 Thread Igor Kovalenko
Hi! pci_bridge_init() has 5 arguments, and pci_adb_init() is only providing 4, name is missing - patch attached Let's make it at least buildable. -- Kind Regards, Igor V. Kovalenko Index: hw/apb_pci.c === RCS file: /cvsroot/qemu/qem

Re: [Qemu-devel] Re: qemu/rtl8139: Max transmit frame size

2006-12-21 Thread Igor Kovalenko
On 11/17/06, Herbert Xu <[EMAIL PROTECTED]> wrote: On Wed, Nov 15, 2006 at 03:38:27PM +1100, herbert wrote: > > CP_TX_BUFFER_SIZE is already 64K. So it seems to me that we don't need > the while loop to extend the buffer at all since no transmitted packet > should be anywhere near this size. >

Re: [Qemu-devel] Re: qemu-system-sparc video problem on 16 bitdisplays

2006-09-08 Thread Igor Kovalenko
>Specifying the console allows aurora to get farther, even starting X.>Mouse doesn't seem to work though. ;0) Mouse should work with Igor Kovalenko's patch, which I resent some days ago.But I can't get to X with aurora-2.0, it just hangs much earlier.It must be hanging while probing for sound modul

Re: [Qemu-devel] Re: qemu-system-sparc video problem on 16 bitdisplays

2006-09-06 Thread Igor Kovalenko
On 9/6/06, Blue Swirl <[EMAIL PROTECTED]> wrote: >Seems like it works, booting aurora-2.0-sparc-disc1.iso gives me the>penguin at least.  Then it hangs and burns CPU as usual.So early? I get to 'Running anaconda..' etc. Before AIO, install almostfinished. It still cannot decide on console device; l

Re: [Qemu-devel] [PATCH] handle multibyte NOPs

2006-08-30 Thread Igor Kovalenko
On 8/21/06, malc <[EMAIL PROTECTED]> wrote: On Mon, 21 Aug 2006, Igor Kovalenko wrote:> On 8/21/06, malc <[EMAIL PROTECTED]> wrote:>>>> On Mon, 21 Aug 2006, Igor Kovalenko wrote:>> >> >>>> > Right. Here is the real one with correct case labels.

Re: [Qemu-devel] Re: PCNet and Lance merge, almost there

2006-08-24 Thread Igor Kovalenko
On 8/24/06, Blue Swirl <[EMAIL PROTECTED]> wrote: >- A general remark : instead of using SPARC_IOMMU_TRANSLATE, you should use>new memory helpers to read or write bytes such as>pcnet_physical_memory_read() and pcnet_physical_memory_write(). The>rationale is that ultimately pci memory accesses will

Re: [Qemu-devel] [PATCH] handle multibyte NOPs

2006-08-20 Thread Igor Kovalenko
On 8/21/06, malc <[EMAIL PROTECTED]> wrote: On Mon, 21 Aug 2006, Igor Kovalenko wrote:> Right. Here is the real one with correct case labels.Sorry, forgot to mention that atop of the hex/bin problem the code alsosuffers from lack of proper 16/64 bit modrm decoding. seems to me that 16 a

Re: [Qemu-devel] [PATCH] handle multibyte NOPs

2006-08-20 Thread Igor Kovalenko
On 8/21/06, malc <[EMAIL PROTECTED]> wrote: On Mon, 21 Aug 2006, Igor Kovalenko wrote:> On 8/19/06, Paul Brook <[EMAIL PROTECTED]> wrote:>>>> On Saturday 19 August 2006 00:40, Igor Kovalenko wrote: >> > Hi!>> >>> > This patch adds handling of m

Re: [Qemu-devel] [PATCH] handle multibyte NOPs

2006-08-20 Thread Igor Kovalenko
On 8/19/06, Paul Brook <[EMAIL PROTECTED]> wrote: On Saturday 19 August 2006 00:40, Igor Kovalenko wrote:> Hi!>> This patch adds handling of multi-byte NOPs, recent gcc/gas uses them for> x86 code padding.> Patch checked with current opensuse-factory x86 guest installation

[Qemu-devel] Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?)

2006-08-20 Thread Igor Kovalenko
Juergen Lock wrote: > > Thanks, that seems to get the rl driver going. Now to fix C+ mode > (re driver) change the #if 0 in my patch to #if 1... > Well actually that requires a bit more: implementing on-board timer. freebsd if_re.c driver loopback test sequence passes if packet is received AN

[Qemu-devel] Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?)

2006-08-20 Thread Igor Kovalenko
Juergen Lock wrote: > On Fri, Apr 28, 2006 at 08:25:02PM +0400, Igor Kovalenko wrote: >> Juergen Lock wrote: >>> I played with >>> qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw >>> es1370 -kernel-kqemu -net nic,model=rtl813

[Qemu-devel] Re: playing with qemu's 8139 nic and FreeBSD (loopback mode missing?)

2006-08-20 Thread Igor Kovalenko
Juergen Lock wrote: > I played with > qemu -monitor stdio -m 256 -cdrom 6.1-RC1-i386-disc1.iso -usb -soundhw > es1370 -kernel-kqemu -net nic,model=rtl8139 -net user > and got it as far as > re0: diagnostic failed, failed to receive packet in loopback mode > (followed by a panic :) with

[Qemu-devel] [PATCH] handle multibyte NOPs

2006-08-18 Thread Igor Kovalenko
Hi!This patch adds handling of multi-byte NOPs, recent gcc/gas uses them for x86 code padding.Patch checked with current opensuse-factory x86 guest installation which is built with new gcc/gas tools.-- Kind Regards,Igor V. Kovalenko Index: target-i386/translate.c ===

Re: [Qemu-devel] qemu usb-linux.c vl.h hw/esp.c hw/lsi53c895a.c ...

2006-08-15 Thread Igor Kovalenko
On 8/12/06, Paul Brook <[EMAIL PROTECTED]> wrote: CVSROOT:/sources/qemuModule name:qemuChanges by: Paul Brook 06/08/12 01:04:27Modified files:.  : usb-linux.c vl.hhw : esp.c lsi53c895a.c scsi-disk.c usb-hid.c usb-

[Qemu-devel] [PATCH] osdep.c fd leak fix

2006-08-14 Thread Igor Kovalenko
Hi!mkstemp() does open fd for us, no need to leak one file descriptor.Please apply.--Kind Regards,Igor V. Kovalenko Index: osdep.c === RCS file: /cvsroot/qemu/qemu/osdep.c,v retrieving revision 1.13 diff -u -r1.13 osdep.c --- osdep.c

Re: [Qemu-devel] [PATCH] slavio serial mouse

2006-08-10 Thread Igor Kovalenko
Funky, I had made almost the same changes some time ago, but I didn't knowabout the extra two bytes in the protocol. The two extra bytes are for MSC protocol, seems like original SUN mouse has only three bytes. I can only test it with linux guest, here these two extra bytes are really helpful.

Re: [Qemu-devel] [PATCH] lance.c emulation corrections

2006-08-10 Thread Igor Kovalenko
>Looking at 7990 chip docs (main chip on lance card) it seems like there are>more features >not implemented; e.g. 1.6ms timer is needed to implement "normal">transmission.It could be worthwhile to check if lance (Am7990) and pcnet (Am79C970A)drivers could be merged. This was discussed briefly some

[Qemu-devel] [PATCH] slavio serial mouse

2006-08-09 Thread Igor Kovalenko
2006 21:59:55 - 1.6 +++ hw/slavio_serial.c 9 Aug 2006 23:41:09 - @@ -42,6 +42,13 @@ * */ +/* + * Modifications: + * 2006-Aug-10 Igor Kovalenko : Renamed KBDQueue to SERIOQueue, implemented + * serial mouse queue

[Qemu-devel] [PATCH] lance.c emulation corrections

2006-08-09 Thread Igor Kovalenko
- 1.9 +++ hw/lance.c 9 Aug 2006 23:14:37 - @@ -21,6 +21,20 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +/* + * Modifications: + * 2006-Aug-10 Igor Kovalenko : Corrected STOP procedure to

[Qemu-devel] Fwd: sparc emulation tcx_update_display fix

2006-08-02 Thread Igor Kovalenko
Resending, sorry if this is a duplicate-- Forwarded message --From: Igor KovalenkoDate: Aug 3, 2006 12:48 AMSubject: sparc emulation tcx_update_display fix To: qemu-devel@nongnu.orgHi!Noticed that integer promotion precludes tcx display emulator from resetting VGA_DIRTY_FLAG on page

[Qemu-devel] sparc emulation tcx_update_display fix

2006-08-02 Thread Igor Kovalenko
Hi!Noticed that integer promotion precludes tcx display emulator from resetting VGA_DIRTY_FLAG on pages it scanned, patch attached.Before this change, ~75% host cpu is busy with drawing display lines, now it is ~1% only. Index: hw/tcx.c =

Re: [Qemu-devel] 0.8.2 and win64

2006-07-27 Thread Igor Kovalenko
On 7/27/06, ZIGLIO, Frediano, VF-IT <[EMAIL PROTECTED]> wrote: >> On 7/26/06, ZIGLIO, Frediano, VF-IT <[EMAIL PROTECTED]>wrote:> >> > Hi,> >   as expected 0.8.2 make windows 64 works. There is however a small > > problem with network card. Windows 64 do not support old ne card soI> > used rtl8139.

Re: [Qemu-devel] 0.8.2 and win64

2006-07-26 Thread Igor Kovalenko
On 7/26/06, ZIGLIO, Frediano, VF-IT <[EMAIL PROTECTED]> wrote: Hi,  as expected 0.8.2 make windows 64 works. There is however a smallproblem with network card. Windows 64 do not support old ne card so Iused rtl8139. It seems that 8139plus card make windows enter in an infinite loop at shutdown. Cha

Re: [Qemu-devel] qemu/hw rtl8139.c

2006-07-10 Thread Igor Kovalenko
On 7/9/06, Igor Kovalenko wrote: Hi!This updated patch against current CVS implements TCP segmentation offloading for RTL8139 in C+ mode.I fixed a couple of problems in implementation (wrong sequence number calculation), and now TCP performance seem to be normal. Dependency on slirp.h header is

Re: [Qemu-devel] qemu/hw rtl8139.c

2006-07-09 Thread Igor Kovalenko
* Implemented IP/TCP/UDP checksum task offloading + * + * 2006-Jul-04 Igor Kovalenko : Implemented TCP segmentation offloading + * Fixed MTU=1500 for produced ethernet frames + * + * 2006-Jul-09 Igor Kovalenko : Fixed TCP header length calculation while processing

Re: [Qemu-devel] qemu vl.h Makefile.target hw/pci.c hw/pcnet.c

2006-07-08 Thread Igor Kovalenko
On 7/8/06, Paul Jakma <[EMAIL PROTECTED]> wrote: On Sat, 8 Jul 2006, Paul Jakma wrote:> Hmm, define 'unable to use it'? It seems (on very quick testing) to work in> Solaris.Spoke too soon, ICMP echos and TCP connects work, but it seems tohave problems transferring anything substantial. Try this pat

Re: [Qemu-devel] qemu/hw rtl8139.c

2006-07-04 Thread Igor Kovalenko
d PCI timer interrupt (disabled by default) * Implemented Tally Counters, increased VM load/save version * Implemented IP/TCP/UDP checksum task offloading + * + * 2006-Jul-04 Igor Kovalenko : Implemented TCP segmentation offlo

[Qemu-devel] [PATCH] Realtek 8139 PCI NIC driver

2006-01-08 Thread Igor Kovalenko
Hi! This emulation driver provides Realtek 8139 PCI ethernet card which seems to be supported by Linux and Darwin. I cannot run Darwin/PPC 8.0.1 installer under qemu so only little-endian x86 was really checked to work. There is no 8139C+ mode emulation available, so Linux user would choose 8139

Re: [Qemu-devel] patch for qemu with newer gcc-3.4.x (support repz retq optimization for amd processors correctly)

2005-11-10 Thread Igor Kovalenko
Paul Brook wrote: Notice the 'repz mov' sequence, which seems to be undocumented instruction. It seems to work somehow but chokes valgrind decoder. The following patch (against current CVS) fixes this problem, This patch is incorrect. It could match any number of other instructions that happen

Re: [Qemu-devel] patch for qemu with newer gcc-3.4.x (support repz retq optimization for amd processors correctly)

2005-11-09 Thread Igor Kovalenko
Paul Brook wrote: Notice the 'repz mov' sequence, which seems to be undocumented instruction. It seems to work somehow but chokes valgrind decoder. The following patch (against current CVS) fixes this problem, This patch is incorrect. It could match any number of other instructions that happen

[Qemu-devel] patch for qemu with newer gcc-3.4.x (support repz retq optimization for amd processors correctly)

2005-11-09 Thread Igor Kovalenko
Hi! It turned out that newer gcc produces very interesting code for op_goto_tbX and possibly other functions used by dyngen; in that it adds 'rep' prefix to return instruction. I have the following code in i386-softmmu/op.o: 84c0 : 84c0: 8b 05 00 00 00 00 mov0(%ri