qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: stefano.stabellini@eu.citrix.com
Cc: Steven Smith <ssmith@xensource.com>,
	Anthony PERARD <anthony.perard@citrix.com>,
	xen-devel@lists.xensource.com, qemu-devel@nongnu.org,
	agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH RESEND 1/3] xen: Add the Xen platform pci device
Date: Sun, 26 Jun 2011 16:14:16 +0300	[thread overview]
Message-ID: <20110626131416.GA7513@redhat.com> (raw)
In-Reply-To: <1308240319-13949-1-git-send-email-stefano.stabellini@eu.citrix.com>

On Thu, Jun 16, 2011 at 05:05:17PM +0100, stefano.stabellini@eu.citrix.com wrote:
> diff --git a/hw/pci_ids.h b/hw/pci_ids.h
> index d9457ed..d94578c 100644
> --- a/hw/pci_ids.h
> +++ b/hw/pci_ids.h
> @@ -109,3 +109,5 @@
>  #define PCI_DEVICE_ID_INTEL_82371AB      0x7111
>  #define PCI_DEVICE_ID_INTEL_82371AB_2    0x7112
>  #define PCI_DEVICE_ID_INTEL_82371AB_3    0x7113
> +
> +#define PCI_VENDOR_ID_XENSOURCE          0x5853

Please stick to names in  include/linux/pci_ids.h
in the linux tree.

$ grep XEN /scm/linux-2.6/include/linux/pci_ids.h 
#define PCI_VENDOR_ID_NETXEN            0x4040
#define PCI_VENDOR_ID_XEN               0x5853
#define PCI_DEVICE_ID_XEN_PLATFORM      0x0001



> diff --git a/hw/xen_platform.c b/hw/xen_platform.c
> new file mode 100644
> index 0000000..b167eee

...

> +
> +    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_XENSOURCE);
> +    pci_config_set_device_id(pci_conf, 0x0001);

PCI_DEVICE_ID_XEN_PLATFORM

> +    pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, PCI_VENDOR_ID_XENSOURCE);
> +    pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, 0x0001);

Same.

  reply	other threads:[~2011-06-26 13:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-16 16:04 [Qemu-devel] [PATCH 0/3] xen: support PV on HVM guests Stefano Stabellini
2011-06-16 16:05 ` [Qemu-devel] [PATCH RESEND 1/3] xen: Add the Xen platform pci device stefano.stabellini
2011-06-26 13:14   ` Michael S. Tsirkin [this message]
2011-06-16 16:05 ` [Qemu-devel] [PATCH 2/3] pci: export pci_unplug_device stefano.stabellini
2011-06-20  8:48   ` Michael S. Tsirkin
2011-06-23 13:12     ` Stefano Stabellini
2011-06-16 16:05 ` [Qemu-devel] [PATCH 3/3] xen: implement unplug protocol in xen_platform stefano.stabellini
2011-06-17 13:46   ` [Qemu-devel] [Xen-devel] " Anthony PERARD
2011-06-23 13:11     ` Stefano Stabellini
2011-06-20  8:47   ` [Qemu-devel] " Michael S. Tsirkin
     [not found]   ` <7424DA76-FD02-479F-B72A-D0B6EBBDE7DF@suse.de>
2011-06-20  8:59     ` Kevin Wolf
2011-06-23 13:16       ` Stefano Stabellini
2011-06-27  8:26         ` Kevin Wolf
2011-06-27 15:34           ` Stefano Stabellini
2011-06-27 15:46             ` Kevin Wolf
2011-06-28 11:27               ` Stefano Stabellini

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=20110626131416.GA7513@redhat.com \
    --to=mst@redhat.com \
    --cc=agraf@suse.de \
    --cc=anthony.perard@citrix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ssmith@xensource.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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).