Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs

Avi Kivity
2010-11-24T17:26:30Z

On 11/24/2010 07:16 PM, Gleb Natapov wrote:
> >
> > If the i8042 is completely stock, we write
> >
> > class i440fx {
> > private:
> > i8042 kbc;
> > }
> >
> > (or the C equivalent)
> >
> > If it's not completely stock, we substitute some subclass that takes
> > care of the differences.
> >
> And if you want to connect ISA sound blaster to that you make subclass
> with SB device? No. You make ISA bus functionality available from i440fx
> and connect SB there.

Correct. A PIIX3 doesn't contain an SB device.

> So now you have bunch of devices that are part of
> i440fx class and others that are connected via ISA bus functionality and
> all that because you read to deeply into PIIX3 spec?

Yes.

--
error compiling committee.c: too many arguments to function