From: eraul_cn <eraul.fj@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough
Date: Wed, 15 Apr 2015 02:17:56 -0700 (MST) [thread overview]
Message-ID: <1429089476338-323854.post@n7.nabble.com> (raw)
In-Reply-To: <1426669601-13891-4-git-send-email-tiejun.chen@intel.com>
Chen, Tiejun wrote
> +/* Here we just expose minimal host bridge offset subset. */
> +static const IGDHostInfo igd_host_bridge_infos[] = {
> + {0x08, 2}, /* revision id */
> + {0x2c, 2}, /* sybsystem vendor id */
> + {0x2e, 2}, /* sybsystem id */
> + {0x50, 2}, /* SNB: processor graphics control register */
> + {0x52, 2}, /* processor graphics control register */
> + {0xa4, 4}, /* SNB: graphics base of stolen memory */
> + {0xa8, 4}, /* SNB: base of GTT stolen memory */
> +};
> +
I tested this patch and found that the registers 0xa0(top of memory) and
0xb0(ILK: BSM) were necessary for Win XP. Both of them are 4 bytes.
Chen, Tiejun wrote
> +static int igd_pt_i440fx_initfn(struct PCIDevice *pci_dev)
> +{
> + uint32_t val = 0;
> + int rc, i, num;
> + int pos, len;
> +
> + num = ARRAY_SIZE(igd_host_bridge_infos);
> + for (i = 0; i < num; i++) {
> + pos = igd_host_bridge_infos[i].offset;
> + len = igd_host_bridge_infos[i].len;
> + rc = host_pci_config_read(pos, len, val);
Here, when we call function host_pci_config_read, the parameter val is
passed by value not address, so the value of val will not be changed after
call host_pci_config_read. So I think host_pci_config_read need update and
the third parameter should be an address.
Thanks
--
View this message in context: http://qemu.11.n7.nabble.com/v7-PATCH-00-10-xen-add-Intel-IGD-passthrough-support-tp319698p323854.html
Sent from the Developer mailing list archive at Nabble.com.
next prev parent reply other threads:[~2015-04-15 9:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 9:06 [Qemu-devel] [v7][PATCH 00/10] xen: add Intel IGD passthrough support Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 01/10] i440fx: make types configurable at run-time Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 02/10] pc_init1: pass parameters just with types Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough Tiejun Chen
2015-03-18 10:21 ` Gerd Hoffmann
2015-03-19 1:01 ` Chen, Tiejun
2015-03-26 7:57 ` Chen, Tiejun
2015-03-26 8:15 ` Michael S. Tsirkin
2015-03-26 8:36 ` Chen, Tiejun
2015-05-20 8:17 ` Chen, Tiejun
2015-05-31 18:11 ` Michael S. Tsirkin
2015-06-02 0:50 ` Chen, Tiejun
2015-06-02 9:17 ` Michael S. Tsirkin
2015-06-05 8:36 ` Chen, Tiejun
2015-04-15 9:17 ` eraul_cn [this message]
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 04/10] hw/pci-assign: split pci-assign.c Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 07/10] igd gfx passthrough: create a isa bridge Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 08/10] xen, gfx passthrough: register " Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough Tiejun Chen
2015-03-18 9:06 ` [Qemu-devel] [v7][PATCH 10/10] xen, gfx passthrough: add opregion mapping Tiejun Chen
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=1429089476338-323854.post@n7.nabble.com \
--to=eraul.fj@gmail.com \
--cc=qemu-devel@nongnu.org \
/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).