qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Scott Tsai <scottt.tw@gmail.com>
Cc: Alexander Graf <agraf@suse.de>, Avi Kivity <avi@redhat.com>,
	qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer
Date: Tue, 10 Nov 2009 18:09:58 -0600	[thread overview]
Message-ID: <4AFA00D6.9030107@codemonkey.ws> (raw)
In-Reply-To: <ef2f888d0911100952s557d9364w87913352b37fc4dd@mail.gmail.com>

Scott Tsai wrote:
> On Wed, Nov 11, 2009 at 1:06 AM, Luiz Capitulino <lcapitulino@redhat.com> wrote:
>   
>>> I'd certainly like to make this code useful for something other than
>>> developer training.
>>> How about a new monitor command "thermometer_set" that works like "mouse_move"?
>>> "thermometer_set" would just set the temperature of the "first"
>>> thermometer device it finds.
>>>       
>>  Couldn't the device be a parameter?
>>
>>  And I'd suggest usb_therm_set for the name.
>>
>>     
>
> Looking at the existing "mouse_set" and "mouse_move" monitor commands,
> they work on USB, PS/2 and other kinds of mice with "mouse_set" selecting
> the mouse device affected by  "mouse_move".
> So how about a new command "therm_set" which selects the thermometer
> affected by "therm_temp" ?
>
> On a separate note, I understand that if a piece of code is not useful enough
> we don't want to merge it to add to the maintenance burden.
> I still propose 'usb-gotemp' for merging because the fact that gregkh
> could give his
> driver tutorial several years in a roll to sizable audiences shows
> that there are people out there
> interested in getting into Linux driver development.
> With this code merged, people could follow the video and slides of his talk
> without special hardware and this potentially grows the Linux developer pool.
>   

And if Greg decides to change the device he uses for the tutorial, then 
in a few years it's not so useful anymore?

That said, if we position this as an example device, I think that makes 
sense.  But that suggests that we should document the heck out of it and 
make it a learning experience for QEMU too.  It could be an example of 
how to write a simple QEMU device emulation.

That would be interesting independent of Greg's tutorial.

Regards,

Anthony Liguori

  parent reply	other threads:[~2009-11-11  0:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10  9:37 [Qemu-devel] [PATCH V2 0/3] usb-gotemp: USB thermometer emulation Scott Tsai
2009-11-10  9:37 ` [Qemu-devel] [PATCH V2 1/3] usb: move HID request defines to hw/usb.h Scott Tsai
2009-11-10  9:37   ` [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer Scott Tsai
2009-11-10  9:37     ` [Qemu-devel] [PATCH V2 3/3] Documentation: -usbdevice thermometer option Scott Tsai
2009-11-10 14:48     ` [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer Avi Kivity
2009-11-10 15:14       ` Scott Tsai
2009-11-10 15:33         ` Alexander Graf
2009-11-10 15:55           ` Scott Tsai
2009-11-10 17:06             ` Luiz Capitulino
2009-11-10 17:52               ` Scott Tsai
2009-11-10 20:52                 ` Luiz Capitulino
2009-11-11  0:06                   ` [Qemu-devel] [PATCH V3 2/3] usb-gotemp: reworked to add monitor commands Scott Tsai
2009-11-11  0:09                 ` Anthony Liguori [this message]
2009-11-11  0:15                   ` [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer Alexander Graf
2009-11-11  0:57                     ` Greg KH
2009-11-11  1:05                       ` Alexander Graf
2009-11-11  1:06                       ` Scott Tsai
2009-12-04  5:28                         ` Greg KH
2009-11-11  2:10                   ` Scott Tsai
2009-11-10 16:50           ` Avi Kivity
2009-11-10 15:39         ` [Qemu-devel] " Juan Quintela
2009-11-10 15:56           ` Scott Tsai
  -- strict thread matches above, loose matches on Subject: below --
2009-11-10 15:22 [Qemu-devel] " Laurent Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AFA00D6.9030107@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=scottt.tw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).