From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: "Xu, Quan" <quan.xu@intel.com>
Cc: "wei.liu2@citrix.com" <wei.liu2@citrix.com>,
"stefano.stabellini@eu.citrix.com"
<stefano.stabellini@eu.citrix.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"dgdegra@tycho.nsa.gov" <dgdegra@tycho.nsa.gov>
Subject: Re: [Qemu-devel] [PATCH v6 3/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure
Date: Mon, 11 May 2015 10:49:36 -0400 [thread overview]
Message-ID: <5550C180.9060106@linux.vnet.ibm.com> (raw)
In-Reply-To: <945CA011AD5F084CBEA3E851C0AB28890E8F986D@SHSMSX101.ccr.corp.intel.com>
On 05/11/2015 08:56 AM, Xu, Quan wrote:
>
>> -----Original Message-----
>> From: Stefan Berger [mailto:stefanb@linux.vnet.ibm.com]
>> Sent: Monday, May 04, 2015 11:36 PM
>> To: Xu, Quan; stefano.stabellini@eu.citrix.com; eblake@redhat.com
>> Cc: qemu-devel@nongnu.org; wei.liu2@citrix.com; dgdegra@tycho.nsa.gov;
>> xen-devel@lists.xen.org
>> Subject: Re: [PATCH v6 3/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure
>>
>> On 05/04/2015 03:22 AM, Quan Xu wrote:
>>
>> +#include <stdio.h>
>> +#include <stdlib.h>
>> +#include <stdarg.h>
>> +#include <string.h>
>> +#include <unistd.h>
>> +#include <signal.h>
>> +#include <inttypes.h>
>> +#include <time.h>
>> +#include <fcntl.h>
>> +#include <errno.h>
>> +#include <sys/ioctl.h>
>> +#include <sys/types.h>
>> +#include <sys/stat.h>
>> +#include <sys/mman.h>
>> +#include <sys/uio.h>
>> +
>> +#include "hw/hw.h"
>> +#include "block/aio.h"
>> +#include "hw/xen/xen_backend.h"
>> +
>> +#ifndef XS_STUBDOM_VTPM_ENABLE
>> +#define XS_STUBDOM_VTPM_ENABLE "1"
>> +#endif
>> +
>> +#ifndef PAGE_SIZE
>> +#define PAGE_SIZE 4096
>> +#endif
>> You should be able to use TARGET_PAGE_SIZE from exec/cpu-all.h I think.
>>
>> With this change: Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
>
> Stefan,
> If I add #include "exec/cpu-all.h" in hw/tpm/xen_vtpm_frontend.c, there are some errors as following:
>
> ++++ error ++++
> In file included from hw/tpm/xen_vtpm_frontend.c:41:0:
> /root/qemu2/include/exec/cpu-all.h:42:46: error: attempt to use poisoned "TARGET_WORDS_BIGENDIAN"
> /root/qemu2/include/exec/cpu-all.h:46:8: error: attempt to use poisoned "BSWAP_NEEDED"
> /root/qemu2/include/exec/cpu-all.h:109:5: error: "TARGET_LONG_SIZE" is not defined [-Werror=undef]
> /root/qemu2/include/exec/cpu-all.h:122:13: error: attempt to use poisoned "TARGET_WORDS_BIGENDIAN"
> /root/qemu2/include/exec/cpu-all.h:174:9: error: attempt to use poisoned "TARGET_PAGE_SIZE"
> /root/qemu2/include/exec/cpu-all.h:174:32: error: attempt to use poisoned "TARGET_PAGE_BITS"
> /root/qemu2/include/exec/cpu-all.h:175:9: error: attempt to use poisoned "TARGET_PAGE_MASK"
> /root/qemu2/include/exec/cpu-all.h:175:28: error: attempt to use poisoned "TARGET_PAGE_SIZE"
> /root/qemu2/include/exec/cpu-all.h:176:9: error: attempt to use poisoned "TARGET_PAGE_ALIGN"
> /root/qemu2/include/exec/cpu-all.h:176:44: error: attempt to use poisoned "TARGET_PAGE_SIZE"
> /root/qemu2/include/exec/cpu-all.h:176:68: error: attempt to use poisoned "TARGET_PAGE_MASK"
> /root/qemu2/include/exec/cpu-all.h:211:1: error: attempt to use poisoned "CPUArchState"
> /root/qemu2/include/exec/cpu-all.h:211:1: error: unknown type name 'CPUArchState'
> /root/qemu2/include/exec/cpu-all.h:211:24: error: attempt to use poisoned "CPUArchState"
> /root/qemu2/include/exec/cpu-all.h:211:24: error: unknown type name 'CPUArchState'
> /root/qemu2/include/exec/cpu-all.h:222:9: error: attempt to use poisoned "CPU_INTERRUPT_HARD"
> /root/qemu2/include/exec/cpu-all.h:226:9: error: attempt to use poisoned "CPU_INTERRUPT_EXITTB"
> /root/qemu2/include/exec/cpu-all.h:229:9: error: attempt to use poisoned "CPU_INTERRUPT_HALT"
> /root/qemu2/include/exec/cpu-all.h:232:9: error: attempt to use poisoned "CPU_INTERRUPT_DEBUG"
> [....]
> +++ error +++
>
>
> ------ ---
>
> Could I replace PAGE_SIZE with VTPM_ PAGE_SIZE, instead of TARGET_PAGE_SIZE from exec/cpu-all.h??
> +#ifndef VTPM_PAGE_SIZE
> +#define VTPM_PAGE_SIZE 4096
> +#endif
Fine by me.
Stefan
next prev parent reply other threads:[~2015-05-11 14:49 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-04 7:22 [Qemu-devel] [PATCH v6 0/6] QEMU:Xen stubdom vTPM for HVM virtual machine(QEMU Part) Quan Xu
2015-05-04 7:22 ` [PATCH v6 1/6] Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line options Quan Xu
2015-05-04 7:22 ` [Qemu-devel] " Quan Xu
2015-05-05 14:28 ` Eric Blake
2015-05-05 14:28 ` [Qemu-devel] " Eric Blake
2015-05-06 2:02 ` Xu, Quan
2015-05-06 2:02 ` Xu, Quan
2015-05-04 7:22 ` [Qemu-devel] [PATCH v6 2/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure Quan Xu
2015-05-04 7:22 ` Quan Xu
2015-05-07 17:25 ` Stefano Stabellini
2015-05-07 17:25 ` [Qemu-devel] " Stefano Stabellini
2015-05-12 1:28 ` Xu, Quan
2015-05-12 1:28 ` [Qemu-devel] [Xen-devel] " Xu, Quan
2015-05-12 14:12 ` Stefano Stabellini
2015-05-12 14:12 ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2015-05-08 9:52 ` [Qemu-devel] " Stefano Stabellini
2015-05-08 9:52 ` Stefano Stabellini
2015-05-04 7:22 ` [Qemu-devel] [PATCH v6 3/6] " Quan Xu
2015-05-04 7:22 ` Quan Xu
2015-05-04 12:57 ` Xu, Quan
2015-05-04 12:57 ` [Qemu-devel] " Xu, Quan
2015-05-04 15:36 ` Stefan Berger
2015-05-05 2:41 ` Xu, Quan
2015-05-05 10:23 ` Stefan Berger
2015-05-05 2:41 ` Xu, Quan
2015-05-11 12:56 ` [Qemu-devel] " Xu, Quan
2015-05-11 12:56 ` Xu, Quan
2015-05-11 14:49 ` Stefan Berger [this message]
2015-05-11 14:51 ` [Qemu-devel] " Xu, Quan
2015-05-11 14:51 ` Xu, Quan
2015-05-11 14:49 ` Stefan Berger
2015-05-04 15:36 ` Stefan Berger
2015-05-08 9:52 ` [Qemu-devel] " Stefano Stabellini
2015-05-08 9:52 ` Stefano Stabellini
2015-05-04 7:22 ` [Qemu-devel] [PATCH v6 4/6] Qemu-Xen-vTPM: Move tpm_passthrough_is_selftest() into tpm_util.c Quan Xu
2015-05-04 15:25 ` Stefan Berger
2015-05-05 2:33 ` Xu, Quan
2015-05-05 2:33 ` Xu, Quan
2015-05-04 15:25 ` Stefan Berger
2015-05-04 7:22 ` Quan Xu
2015-05-04 7:23 ` [PATCH v6 5/6] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backen Quan Xu
2015-05-04 7:23 ` [Qemu-devel] " Quan Xu
2015-05-04 15:30 ` Stefan Berger
2015-05-04 15:30 ` [Qemu-devel] " Stefan Berger
2015-05-05 2:34 ` Xu, Quan
2015-05-05 2:34 ` [Qemu-devel] " Xu, Quan
2015-05-04 7:23 ` [Qemu-devel] [PATCH v6 6/6] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init() Quan Xu
2015-05-04 7:23 ` Quan Xu
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=5550C180.9060106@linux.vnet.ibm.com \
--to=stefanb@linux.vnet.ibm.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=qemu-devel@nongnu.org \
--cc=quan.xu@intel.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.