Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Reviewed-by: Stefan Weil <s...@weilnetz.de>
---
README | 44 +---
1 file changed, 21 insertions(+), 23 deletions(-)
diff --git a/README b/README
index f38193f..8a7ac66 100644
--- a/README
checkpatch.pl and other scripts fail without README. Also in dicussions
it was deemed safer to create a symlink, the patch for which follows.
This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Reviewed-by: Stefan W
Thank you for reviewing.
On Wed, Jul 20, 2016 at 4:10 PM, Stefan Weil <s...@weilnetz.de> wrote:
> See comments below.
>
> I'd also switch commits 2 and 3, because 2 is only valid as soon as
> README is in markup format.
>
OK, I will update patches 2 and 3 and resend a v2.
Thanks!
--
Pranith
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
README.md | 1 +
1 file changed, 1 insertion(+)
create mode 12 README.md
diff --git a/README.md b/README.md
new file mode 12
index 000..100b938
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+README
\ No newline at end o
checkpatch.pl and other scripts fail without README. Also in dicussions
it was deemed safer to create a symlink, the patch for which follows.
This reverts commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
README.md => RE
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
README | 44 +---
1 file changed, 21 insertions(+), 23 deletions(-)
diff --git a/README b/README
index f38193f..8d5744d 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
- QEMU
be seen here:
https://github.com/pranith/qemu/tree/markdown
Pranith Kumar (3):
Revert e4dfc5e8e("Move README to markdown")
Create README.md as a symlink to README
Update README to accomodate markdown format
READM
o
getting it reverted if it really is bothering.
--
Pranith
Paolo Bonzini writes:
> On 14/07/2016 22:29, Pranith Kumar wrote:
>> +} else if (curr_mb_type == TCG_BAR_STRL &&
>> + prev_mb_type == TCG_BAR_LDAQ) {
>> +/* Consecutive load-acquire and store-release barriers
>>
Please try the latest version. The version you reported is too old.
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/485239
Title:
Windows 2008
Alex Bennée writes:
> Pranith Kumar <bobby.pr...@gmail.com> writes:
>
>> This patch applies on top of the fence generation patch series.
>>
>> This commit optimizes fence instructions. Two optimizations are
>> currently implemented. These are:
>>
>
Alex Bennée writes:
> Pranith Kumar <bobby.pr...@gmail.com> writes:
>
>> This patch applies on top of the fence generation patch series.
>>
>> This commit optimizes fence instructions. Two optimizations are
>> currently implemented. These are:
>>
>
aniel P. Berrange <berra...@redhat.com>
> Signed-off-by: Stefan Weil <s...@weilnetz.de>
Thank you for fixing this.
--
Pranith
Richard Henderson writes:
> On 07/15/2016 01:59 AM, Pranith Kumar wrote:
>> This patch applies on top of the fence generation patch series.
>>
>> This commit optimizes fence instructions. Two optimizations are
>> currently implemented. These are:
>>
>> 1. U
On Tue, Jul 19, 2016 at 11:49 AM, Daniel P. Berrange
<berra...@redhat.com> wrote:
> On Tue, Jul 19, 2016 at 10:34:16AM +0200, Paolo Bonzini wrote:
>> From: Pranith Kumar <bobby.pr...@gmail.com>
>>
>> Move the README file to markdown so that it makes the git
Move the README file to markdown so that it makes the github page look
prettier. I know that github repo is a mirror and not the official
repo, but I think it doesn't hurt to have it in markdown format.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
README => READM
Richard agreed to look after PPC[1]. Make this change.
[1] https://lists.gnu.org/archive/html/qemu-ppc/2016-03/msg00657.html
CC: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 delet
; st
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/optimize.c | 59 ++
tcg/tcg.h | 1 +
2 files changed, 60 insertions(+)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index c0d975b..a655829 100644
--- a/tcg/op
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
target-alpha/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 0ea0e6e..c2
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-arm/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-arm/translate.c b/target-arm/translate.c
index bd5d5cb..693d4bc 100644
--- a/target-arm/translate.c
+++ b/target-arm/trans
Cc: Andrzej Zaborowski <balr...@gmail.com>
Cc: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/arm/tcg-target.inc.c | 18 ++
1 file changed, 18 inserti
Cc: Alexander Graf <ag...@suse.de>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/s390/tcg-target.inc.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/tcg/s390/tcg-target.inc.c b/tcg/s390/tcg-
Cc: Aurelien Jarno <aurel...@aurel32.net>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/ia64/tcg-target.inc.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/tcg/ia64/tcg-target.inc.c b/tcg/ia64/tcg-
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-arm/translate-a64.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index f5e29d2..09877bc 100644
--- a/target-arm/translate-a64.c
Cc: Stefan Weil <s...@weilnetz.de>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/tci/tcg-target.inc.c | 3 +++
tci.c| 4
2 files changed, 7 insertions(+)
diff --git a/tcg/tci/tcg-targ
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/mips/tcg-target.inc.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index 2f9be48..1f5adbe 100644
--- a/
This commit introduces the TCGOpcode for memory barrier instruction.
This opcode takes an argument which is the type of memory barrier
which should be generated.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/README| 17 +
tcg/tcg-op.c
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-i386/translate.c | 8
1 file changed, 8 insertions(+)
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 7dea18b..ebeb6f0 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -8
Cc: Blue Swirl <blauwir...@gmail.com>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/sparc/tcg-target.inc.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/tcg/sparc/tcg-target.inc
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/ppc/tcg-target.inc.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c
index eaf1bd9..15
Cc: Claudio Fontana <claudio.font...@gmail.com>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/aarch64/tcg-target.inc.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c
index 08b2
flag to argument.
v2:
- Rebase on Richard's patches generating fences for other
architectures.
v1:
- Initial version: Introduce memory barrier tcg opcode.
Pranith Kumar (14):
Introduce TCGOpcode for memory barrier
tcg/i386: Add support for fence
tcg/aarch64: Add support for fence
tcg
Generate a 'lock orl $0,0(%esp)' instruction for ordering instead of
mfence which has similar ordering semantics.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/i386/tcg-target.inc.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/tcg/i386/tcg-target.i
used to decrypt this string. You can only have access to the
public key of the repo to create the encrypted string as above.
--
Pranith
Tracing configurations error out currently as follows:
/home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c: In function
‘aspeed_scu_read’:
/home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:9: error: implicit
declaration of function ‘qemu_log_mask’ [-Werror=implicit-function-declaration
to notify the IRC only for the main repo.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
CC: serge.f...@gmail.com
CC: peter.mayd...@linaro.org
---
v2: Add comment about what the string is and how the string is generated
.travis.yml | 5 -
1 file changed, 4 insertions(+), 1 deletio
On Mon, Jun 27, 2016 at 1:40 PM, Peter Maydell <peter.mayd...@linaro.org> wrote:
> On 27 June 2016 at 18:34, Pranith Kumar <bobby.pr...@gmail.com> wrote:
>> The idea is to encrypt "irc.oftc.net#qemu" against "qemu/qemu" to
>> generate an ecrypted
to notify the IRC only for the main repo.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
CC: serge.f...@gmail.com
CC: peter.mayd...@linaro.org
---
.travis.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index c13881e..b6b1daf 100644
-
On Mon, Jun 27, 2016 at 1:28 PM, Peter Maydell <peter.mayd...@linaro.org> wrote:
> On 27 June 2016 at 18:18, Pranith Kumar <bobby.pr...@gmail.com> wrote:
>> On Mon, Jun 27, 2016 at 1:16 PM, Peter Maydell <peter.mayd...@linaro.org>
>> wrote:
>>>>
>
mu repo does
> notifications" ?
>
This does the later. If we prefer the former, we need to encrypt the
IRC channel as suggested in:
https://github.com/facebook/flow/pull/1822
--
Pranith
alternative is to encrypt the "qemu/qemu" repository so that
only the main repository updates are posted on
IRC. (ref. https://github.com/facebook/flow/pull/1822).
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
.travis.yml | 4
1 file changed, 4 insertions(+)
diff --git
On Tue, Jun 21, 2016 at 2:04 PM, Alex Bennée <alex.ben...@linaro.org> wrote:
>
> Pranith Kumar <bobby.pr...@gmail.com> writes:
>
>> This commit introduces the TCGOpcode for memory barrier instruction.
>>
>> This opcode takes an argument which is the
what on
>> what operations the ordering is to be enforced.
>
> This would be worthwhile in the comments. I'm confused by the fact we
> have two sets of enums that are going to be merged when building TCGOp
> parameters.
OK, I will add these comments with the details.
--
Pranith
On Tue, Jun 21, 2016 at 1:54 PM, Peter Maydell <peter.mayd...@linaro.org> wrote:
> On 21 June 2016 at 18:28, Pranith Kumar <bobby.pr...@gmail.com> wrote:
>> Reg. the second point, I did consider this situation of running x86 on
>> ARM where such barriers are necessary
On Tue, Jun 21, 2016 at 3:28 AM, Paolo Bonzini <pbonz...@redhat.com> wrote:
>
>
> On 18/06/2016 06:03, Pranith Kumar wrote:
>> Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
>> ---
>> target-i386/translate.c | 4
>> 1 file changed, 4
Hi Sergey,
On Mon, Jun 20, 2016 at 5:21 PM, Sergey Fedorov <serge.f...@gmail.com> wrote:
> On 18/06/16 07:03, Pranith Kumar wrote:
>> diff --git a/tcg/tcg.h b/tcg/tcg.h
>> index db6a062..36feca9 100644
>> --- a/tcg/tcg.h
>> +++ b/tcg/tcg.h
>> @@ -
On Sat, Jun 18, 2016 at 1:48 AM, Richard Henderson <r...@twiddle.net> wrote:
> On 06/17/2016 09:03 PM, Pranith Kumar wrote:
>>
>> case 0xe8 ... 0xef: /* lfence */
>> +tcg_gen_mb(TCG_MO_LD_LD | TCG_BAR_SC);
>> +break;
>>
** Changed in: qemu
Status: New => Confirmed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1594069
Title:
SIMD instructions translated to scalar host instructions
Status in QEMU:
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-i386/translate.c | 4
1 file changed, 4 insertions(+)
diff --git a/target-i386/translate.c b/target-i386/translate.c
index bf33e6b..32b0f5c 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -8012,13 +8
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-arm/translate-a64.c | 18 +-
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index ce8141a..fa24bf2 100644
--- a/target-arm/translate-a64.c
opcode.
Pranith Kumar (14):
Introduce TCGOpcode for memory barrier
tcg/i386: Add support for fence
tcg/aarch64: Add support for fence
tcg/arm: Add support for fence
tcg/ia64: Add support for fence
tcg/mips: Add support for fence
tcg/ppc: Add support for fence
tcg/s390: Add support
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
target-arm/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-arm/translate.c b/target-arm/translate.c
index e525f1e..012e450 100644
Cc: Stefan Weil <s...@weilnetz.de>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/tci/tcg-target.inc.c | 3 +++
tci.c| 3 +++
2 files changed, 6 insertions(+)
diff --git a/tcg/tci/tcg-target.i
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-alpha/translate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 76dab15..f0
Cc: Claudio Fontana <claudio.font...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/aarch64/tcg-target.inc.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/tcg/aarch64/
Cc: Andrzej Zaborowski <balr...@gmail.com>
Cc: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/arm/tcg-target.inc.c | 18 ++
1 file changed, 18 inserti
Cc: Aurelien Jarno <aurel...@aurel32.net>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/ia64/tcg-target.inc.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/tcg/ia64/tcg-target.inc.c b/tcg/ia64/tcg-
Cc: Alexander Graf <ag...@suse.de>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/s390/tcg-target.inc.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/tcg/s390/tcg-target.inc.c b/tcg/s390/tcg-
Cc: Blue Swirl <blauwir...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/sparc/tcg-target.inc.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/tcg/sparc/tcg-target.inc
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/ppc/tcg-target.inc.c | 24
1 file changed, 24 insertions(+)
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c
index da10052..76
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/mips/tcg-target.inc.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index 50e98ea..fb6cb3e 100644
--- a/
Generate mfence/sfence/lfence instruction on SSE2 enabled
processors. For older processors, generate a 'lock orl $0,0(%esp)'
instruction which has full ordering semantics.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
[rth: Check for sse2, fallback to locked memory op otherwise.]
This commit introduces the TCGOpcode for memory barrier instruction.
This opcode takes an argument which is the type of memory barrier
which should be generated.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/RE
GET_VIRT_ADDR_SPACE_BITS == addr >> 63);
>>> +&& addr >> TARGET_VIRT_ADDR_SPACE_BITS == 1);
>
> What you want here is
>
> + addr >> TARGET_VIRT_ADDR_SPACE_BITS == -1
>
> since that's what addr >> 63 is. With this change the patch should be fine.
Isn't (addr >> 63) supposed to be 1? How can it be -1?
--
Pranith
On Fri, Jun 17, 2016 at 2:09 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 06/17/2016 11:07 AM, Pranith Kumar wrote:
>> On Fri, Jun 17, 2016 at 2:04 PM, Paolo Bonzini <pbonz...@redhat.com> wrote:
>>>
>>>
>>> On 16/06/2016 21:07, Richard Hen
On Thu, Jun 16, 2016 at 8:43 PM, Laurent Vivier <laur...@vivier.eu> wrote:
>
>
> Le 16/06/2016 à 21:15, Pranith Kumar a écrit :
>> On Thu, Jun 16, 2016 at 3:07 PM, Richard Henderson <r...@twiddle.net> wrote:
>>> On 06/16/2016 11:56 AM, Pranith Kumar wrote:
>
Hi Richard,
On Tue, May 31, 2016 at 4:34 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 05/31/2016 11:39 AM, Pranith Kumar wrote:
>>
>> +/* System instructions. */
>> +DMB_ISH = 0xd5033bbf,
>
> ...
>>
>> +case
On Thu, Jun 16, 2016 at 3:07 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 06/16/2016 11:56 AM, Pranith Kumar wrote:
>> Using gcc 6.1 for alpha-linux-user target we see the following build
>> error:
>>
>> /mnt/devops/code/qemu/target-alpha/translate.c: In
]
&& addr >> TARGET_VIRT_ADDR_SPACE_BITS == addr >> 63);
Fix it by replacing (addr >> 63) by '1' which is what it evaluates to
since addr is negative.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-alpha/translate.c | 2 +-
1 file changed, 1 i
Hi Peter,
On Tue, May 10, 2016 at 6:11 AM, Peter Maydell wrote:
> The TCR_EL2 and TCR_EL3 regdefs wer incorrectly using the
> vmsa_tcr_el1_write function for writes. Since these registers don't
> have the A1 bit that TCR_EL1 does, we don't need to do a tlb_flush()
>
On Mon, Jun 6, 2016 at 3:23 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 06/06/2016 10:11 AM, Pranith Kumar wrote:
>>
>> If I read it correctly TCG_BAR_SYNC is equivalent to OR of all the
>> other four barriers. I am not sure if we can just construct SYNC
On Mon, Jun 6, 2016 at 12:14 PM, Sergey Fedorov <serge.f...@gmail.com> wrote:
> On 06/06/16 18:58, Pranith Kumar wrote:
>> On Mon, Jun 6, 2016 at 11:49 AM, Sergey Fedorov <serge.f...@gmail.com> wrote:
>>> On 06/06/16 18:47, Pranith Kumar wrote:
>>>> On Mo
On Mon, Jun 6, 2016 at 11:44 AM, Sergey Fedorov <serge.f...@gmail.com> wrote:
> On 03/06/16 21:27, Pranith Kumar wrote:
>> On Thu, Jun 2, 2016 at 5:18 PM, Richard Henderson <r...@twiddle.net> wrote:
>>>
>>> What if we have tcg_canonicalize_memo
On Mon, Jun 6, 2016 at 11:49 AM, Sergey Fedorov <serge.f...@gmail.com> wrote:
> On 06/06/16 18:47, Pranith Kumar wrote:
>> On Mon, Jun 6, 2016 at 11:44 AM, Sergey Fedorov <serge.f...@gmail.com> wrote:
>>> On 03/06/16 21:27, Pranith Kumar wrote:
>>>&g
On Thu, Jun 2, 2016 at 3:37 PM, Sergey Fedorov <serge.f...@gmail.com> wrote:
> On 31/05/16 21:39, Pranith Kumar wrote:
>> Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
>> Signed-off-by: Richard Henderson <r...@twiddle.net>
>> ---
>> target-arm/
sible by Emilio's QHT work which this
> is based on.
>
> The branch can be found at:
>
> https://github.com/stsquad/qemu/tree/mttcg/base-patches-v3
FYI, I tried booting a debian armv7 image with this branch and it
doesn't boot. I'll try to see why it is failing.
Thanks,
--
Pranith.
TCG_BAR_LD_LD
> qemu_ld_i32 x, y, i, m
> mbTCG_BAR_LD_ST
>
> We can then add an optimization pass which folds barriers with no memory
> operations in between, so that duplicates are eliminated.
>
Yes, folding/eliding these barriers in an optimization pass sounds
like a good idea.
Thanks,
--
Pranith
ase instructions makes a
significant difference in performance when compared to plain
dmb+memory instruction sequence. So I would really like to keep the
option of generating acq/rel instructions(by combining barrier and
memory or some other way) open.
Thanks,
--
Pranith
Sergey Fedorov writes:
> On 31/05/16 21:39, Pranith Kumar wrote:
>> diff --git a/tcg/README b/tcg/README
>> index f4a8ac1..cfe79d7 100644
>> --- a/tcg/README
>> +++ b/tcg/README
>> @@ -402,6 +402,23 @@ double-word product T0. The later is return
e read and write barriers. But we still
need to generate 'mfence' to prevent store-after-load reordering. I
will refine this in the next version.
Thanks,
--
Pranith
On Tue, May 31, 2016 at 4:27 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 05/31/2016 11:39 AM, Pranith Kumar wrote:
>>
>> +case INDEX_op_mb:
>> +tcg_out_mb(s);
>
>
> You need to look at the barrier type and DTRT. In particular, the Li
Hi Richard,
Thanks for the review. I will make the changes you pointed out. One point below:
On Tue, May 31, 2016 at 4:24 PM, Richard Henderson <r...@twiddle.net> wrote:
> On 05/31/2016 11:39 AM, Pranith Kumar wrote:
>> +/* TCGOpmb args */
>> +#define TCG_MB_FULL
Cc: Claudio Fontana <claudio.font...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/aarch64/tcg-target.inc.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/tcg/aarch64/tcg-target.inc.c
Cc: Stefan Weil <s...@weilnetz.de>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/tci/tcg-target.inc.c | 3 +++
tci.c| 3 +++
2 files changed, 6 insertions(+)
diff --git a/tcg/tci/tcg-target.i
Cc: Alexander Graf <ag...@suse.de>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/s390/tcg-target.inc.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/tcg/s390/tcg-target.inc.c b/tcg/s390/tcg-
Cc: Blue Swirl <blauwir...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/sparc/tcg-target.inc.c | 8
1 file changed, 8 insertions(+)
diff --git a/tcg/sparc/tcg-target.inc.c b/tcg/sparc/tcg-
Added correct email for Sergey in CC.
I apologize for getting Sergey's email wrong. Please drop/correct his
email when replying to the patches in this series otherwise you will
see an email bounce.
On Tue, May 31, 2016 at 2:39 PM, Pranith Kumar <bobby.pr...@gmail.com> wrote:
&
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
target-alpha/translate.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 5b86992..17
Generate mfence instruction on SSE2 enabled processors. For older
processors, generate a 'lock orl $0,0(%esp)' instruction which has
similar ordering semantics.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
[rth: Check for sse2, fallback to locked memory op otherwise.]
Sign
Cc: Andrzej Zaborowski <balr...@gmail.com>
Cc: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/arm/tcg-target.inc.c | 12
1 file changed, 12 insertions(
This commit introduces the TCGOpcode for memory barrier instruction.
This opcode takes an argument which is the type of memory barrier
which should be generated.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
tcg/RE
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
Signed-off-by: Richard Henderson <r...@twiddle.net>
---
target-arm/translate.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/target-arm/translate.c b/target-arm/translate.c
index c946c0e..e1b16c0 100644
Cc: Aurelien Jarno <aurel...@aurel32.net>
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/ia64/tcg-target.inc.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/tcg/ia64/tcg-target.inc.c b/tcg/ia64/tcg-
We need to generate fence instructions only for SMP MTTCG guests. This
patch enforces that.
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/tcg-op.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c
index a6f01a7..eeb0d0c
Hello,
The following series adds fence instruction generation support to
TCG. The current work has been rebased on-top of Richard's patch
series.
This has been tested and confirmed to fix ordering issues on a x86
host with MTTCG enabled ARMv7 guest using KVM unit tests.
Pranith Kumar (13
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/mips/tcg-target.inc.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index b2a839a..fc9c7fb 100644
--- a/
Signed-off-by: Richard Henderson <r...@twiddle.net>
Signed-off-by: Pranith Kumar <bobby.pr...@gmail.com>
---
tcg/ppc/tcg-target.inc.c | 8
1 file changed, 8 insertions(+)
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c
index 1039407..45a667f 100644
--- a
false. From what I can see, a thread should
either take the exclusive lock or wait spinning for it in lock(). So
unlock() should always see cpu_have_exclusive_lock as true. It is a
good place to find locking bugs.
--
Pranith
t;
> A bit of bike-shedding. While there's no common ISA term for "memory
> barrier" (also known as a "membar", "memory fence", etc.), we already
> refer to it as a "memory barrier" (or "mb") in include/qemu/atomic.h and
> docs/atomics.txt. Why don't be consistent and avoid introducing yet
> another term for the same thing?
>
Fair point. Do you think tcg_out_mb() is better then?
Thanks,
--
Pranith
I have a version with this fixed. I will post my patches(v3) with this
changed.
Thanks,
--
Pranith
301 - 400 of 459 matches
Mail list logo