sdk/emulator/qemu.git
12 years agoMerge branch 'master' of git://172.21.111.188/emulator
Son Hyunjun [Thu, 8 Mar 2012 10:30:31 +0000 (19:30 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years ago[Title] disable skin_client
giwoong.kim [Thu, 8 Mar 2012 10:30:14 +0000 (19:30 +0900)]
[Title] disable skin_client
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoadd temp sh
Son Hyunjun [Thu, 8 Mar 2012 10:29:14 +0000 (19:29 +0900)]
add temp sh

12 years agoAdd install script and fix arguments parsing bugs
syeon.hwang [Thu, 8 Mar 2012 10:11:54 +0000 (19:11 +0900)]
Add install script and fix arguments parsing bugs

12 years agoMove maru_board source location
syeon.hwang [Thu, 8 Mar 2012 09:55:01 +0000 (18:55 +0900)]
Move maru_board source location

12 years agoAdd maru_board and refining Makefile
syeon.hwang [Thu, 8 Mar 2012 09:54:10 +0000 (18:54 +0900)]
Add maru_board and refining Makefile

12 years agoDelivery skin arguments
syeon.hwang [Thu, 8 Mar 2012 09:28:51 +0000 (18:28 +0900)]
Delivery skin arguments

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 08:50:54 +0000 (17:50 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

Conflicts:
tizen/src/emulator.c

12 years agoAdd initial args parser
syeon.hwang [Thu, 8 Mar 2012 08:45:55 +0000 (17:45 +0900)]
Add initial args parser

12 years ago[Title] add comments
giwoong.kim [Thu, 8 Mar 2012 08:39:32 +0000 (17:39 +0900)]
[Title] add comments
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agomodify debug
Son Hyunjun [Thu, 8 Mar 2012 08:35:20 +0000 (17:35 +0900)]
modify debug

12 years agoadd debug
Son Hyunjun [Thu, 8 Mar 2012 08:33:27 +0000 (17:33 +0900)]
add debug

12 years agoadd bios.bin
Son Hyunjun [Thu, 8 Mar 2012 08:23:16 +0000 (17:23 +0900)]
add bios.bin

12 years agofix typo
Son Hyunjun [Thu, 8 Mar 2012 08:19:41 +0000 (17:19 +0900)]
fix typo

12 years agofix typi
Son Hyunjun [Thu, 8 Mar 2012 08:18:57 +0000 (17:18 +0900)]
fix typi

12 years agoadd vga contents
Son Hyunjun [Thu, 8 Mar 2012 08:10:58 +0000 (17:10 +0900)]
add vga contents

12 years ago[Title] Enable DEBUG_CHANNEL feature.
Kitae Kim [Thu, 8 Mar 2012 07:52:08 +0000 (16:52 +0900)]
[Title] Enable DEBUG_CHANNEL feature.
[Type]
[Module] emulator / logging
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] deleted baseimage & kernelimage file
giwoong.kim [Thu, 8 Mar 2012 07:50:12 +0000 (16:50 +0900)]
[Title] deleted baseimage & kernelimage file
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] modified jar path
giwoong.kim [Thu, 8 Mar 2012 07:08:19 +0000 (16:08 +0900)]
[Title] modified jar path
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
giwoong.kim [Thu, 8 Mar 2012 07:03:39 +0000 (16:03 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years ago[Title] added jar bin
giwoong.kim [Thu, 8 Mar 2012 07:03:21 +0000 (16:03 +0900)]
[Title] added jar bin
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 06:58:37 +0000 (15:58 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoAdd Makefile prototype for convinence
syeon.hwang [Thu, 8 Mar 2012 06:58:29 +0000 (15:58 +0900)]
Add Makefile prototype for convinence

12 years ago[Title] skin_operation
giwoong.kim [Thu, 8 Mar 2012 06:57:15 +0000 (15:57 +0900)]
[Title] skin_operation
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] maruskin_client
giwoong.kim [Thu, 8 Mar 2012 06:53:40 +0000 (15:53 +0900)]
[Title] maruskin_client
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoAdd CONFIG_MARU
syeon.hwang [Thu, 8 Mar 2012 06:42:07 +0000 (15:42 +0900)]
Add CONFIG_MARU

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 06:36:52 +0000 (15:36 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoFix main function name
syeon.hwang [Thu, 8 Mar 2012 06:36:31 +0000 (15:36 +0900)]
Fix main function name

12 years agoFix compilation problems
syeon.hwang [Thu, 8 Mar 2012 06:34:32 +0000 (15:34 +0900)]
Fix compilation problems

12 years ago[Title] using CONFIG_MARU
giwoong.kim [Thu, 8 Mar 2012 06:34:06 +0000 (15:34 +0900)]
[Title] using CONFIG_MARU
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] maruskin_sdl
giwoong.kim [Thu, 8 Mar 2012 06:24:44 +0000 (15:24 +0900)]
[Title] maruskin_sdl
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 06:04:09 +0000 (15:04 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoFix compilation error and some source refining
syeon.hwang [Thu, 8 Mar 2012 06:04:03 +0000 (15:04 +0900)]
Fix compilation error and some source refining

12 years agochange boilerplate
Son Hyunjun [Thu, 8 Mar 2012 05:21:04 +0000 (14:21 +0900)]
change boilerplate

12 years agochange boilerplate
Son Hyunjun [Thu, 8 Mar 2012 05:16:55 +0000 (14:16 +0900)]
change boilerplate

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 05:11:49 +0000 (14:11 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoadd maru_pm
Son Hyunjun [Thu, 8 Mar 2012 05:11:02 +0000 (14:11 +0900)]
add maru_pm

12 years agoadd include <stdint.h>
Son Hyunjun [Thu, 8 Mar 2012 05:02:20 +0000 (14:02 +0900)]
add include <stdint.h>

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 05:01:19 +0000 (14:01 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
Son Hyunjun [Thu, 8 Mar 2012 05:00:22 +0000 (14:00 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agomodify boilerplate and add include <pthread.h>
Son Hyunjun [Thu, 8 Mar 2012 05:00:14 +0000 (14:00 +0900)]
modify boilerplate and add include <pthread.h>

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Thu, 8 Mar 2012 04:59:01 +0000 (13:59 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoFix Makefile problem and add property
syeon.hwang [Thu, 8 Mar 2012 04:58:56 +0000 (13:58 +0900)]
Fix Makefile problem and add property

12 years ago[Title] Rename PixelFormat type to FFmpeg_PixelFormat in FFmpeg library to compile...
Kitae Kim [Thu, 8 Mar 2012 04:52:05 +0000 (13:52 +0900)]
[Title] Rename PixelFormat type to FFmpeg_PixelFormat in FFmpeg library to compile qemu and update FFmpeg libraries.
[Type]
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title]add sdb function in vl.c
munkyu.im [Thu, 8 Mar 2012 03:14:58 +0000 (12:14 +0900)]
[Title]add sdb function in vl.c
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agofix compile error and warning
Son Hyunjun [Thu, 8 Mar 2012 03:02:40 +0000 (12:02 +0900)]
fix compile error and warning

12 years agoRevert "fix compile error overlay"
Son Hyunjun [Thu, 8 Mar 2012 02:22:44 +0000 (11:22 +0900)]
Revert "fix compile error overlay"

This reverts commit 9f2d86fbd4c3b306113ba5fd6633898ce02bc242.

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
munkyu.im [Thu, 8 Mar 2012 02:17:22 +0000 (11:17 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years ago[Title]add sdb
munkyu.im [Thu, 8 Mar 2012 02:16:53 +0000 (11:16 +0900)]
[Title]add sdb
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoRevert "[Title]add sdb"
munkyu.im [Thu, 8 Mar 2012 01:33:57 +0000 (10:33 +0900)]
Revert "[Title]add sdb"

This reverts commit 0c240e599bb38ef08c32eba040039e2b0ef8f9f1.

12 years agofix compile error overlay
Son Hyunjun [Thu, 8 Mar 2012 01:27:37 +0000 (10:27 +0900)]
fix compile error overlay

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
Kitae Kim [Wed, 7 Mar 2012 14:09:31 +0000 (23:09 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoRevert "[Title] Modify Codec module because memory APIs have been updated on QEMU...
Kitae Kim [Wed, 7 Mar 2012 09:31:59 +0000 (18:31 +0900)]
Revert "[Title] Modify Codec module because memory APIs have been updated on QEMU 1.0"

This reverts commit af599b344c5903f753e0ba07f0ea1084f14aa7a4.

Conflicts:

configure

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Wed, 7 Mar 2012 09:31:00 +0000 (18:31 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoAdd include path (SRC_PATH/hw)
syeon.hwang [Wed, 7 Mar 2012 09:30:50 +0000 (18:30 +0900)]
Add include path (SRC_PATH/hw)

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
Son Hyunjun [Wed, 7 Mar 2012 09:27:15 +0000 (18:27 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoRevert "merge vga.c"
Son Hyunjun [Wed, 7 Mar 2012 09:26:50 +0000 (18:26 +0900)]
Revert "merge vga.c"

This reverts commit 6333ace05f19b9b5373744ec9f572fb9a59ba84d.

12 years ago[Title] include file changed.
sangjin3.kim [Wed, 7 Mar 2012 09:25:04 +0000 (18:25 +0900)]
[Title] include file changed.
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] opengl build script moved from Makefile.target to tizen/src/Makefile.tizen
sangjin3.kim [Wed, 7 Mar 2012 09:16:55 +0000 (18:16 +0900)]
[Title] opengl build script moved from Makefile.target to tizen/src/Makefile.tizen
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] opengl
sangjin3.kim [Wed, 7 Mar 2012 09:10:11 +0000 (18:10 +0900)]
[Title] opengl
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
syeon.hwang [Wed, 7 Mar 2012 08:35:22 +0000 (17:35 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agoAdd initial maru make system
syeon.hwang [Wed, 7 Mar 2012 08:35:14 +0000 (17:35 +0900)]
Add initial maru make system

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
munkyu.im [Wed, 7 Mar 2012 07:00:21 +0000 (16:00 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years ago[Title]convert utf8 to cp949 (CreateFile)
munkyu.im [Wed, 7 Mar 2012 06:59:04 +0000 (15:59 +0900)]
[Title]convert utf8 to cp949 (CreateFile)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] call maruskin_sdl_init
giwoong.kim [Wed, 7 Mar 2012 05:35:06 +0000 (14:35 +0900)]
[Title] call maruskin_sdl_init
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] added main
giwoong.kim [Wed, 7 Mar 2012 05:30:09 +0000 (14:30 +0900)]
[Title] added main
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title]add sdb
munkyu.im [Wed, 7 Mar 2012 05:18:28 +0000 (14:18 +0900)]
[Title]add sdb
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] dos2unix
giwoong.kim [Wed, 7 Mar 2012 02:44:43 +0000 (11:44 +0900)]
[Title] dos2unix
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] added header file
giwoong.kim [Wed, 7 Mar 2012 01:31:51 +0000 (10:31 +0900)]
[Title] added header file
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] added maruskin_client file
giwoong.kim [Tue, 6 Mar 2012 05:16:47 +0000 (14:16 +0900)]
[Title] added maruskin_client file
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] added maruskin_sdl file
giwoong.kim [Tue, 6 Mar 2012 02:39:37 +0000 (11:39 +0900)]
[Title] added maruskin_sdl file
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoadd hardkey event
Son Hyunjun [Mon, 5 Mar 2012 14:15:18 +0000 (23:15 +0900)]
add hardkey event

12 years agoadd protocol and operation
Son Hyunjun [Mon, 5 Mar 2012 13:57:59 +0000 (22:57 +0900)]
add protocol and operation

12 years ago[Title] added maru_touchscreen file
giwoong.kim [Mon, 5 Mar 2012 13:03:33 +0000 (22:03 +0900)]
[Title] added maru_touchscreen file
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agorename enum
Son Hyunjun [Mon, 5 Mar 2012 12:39:32 +0000 (21:39 +0900)]
rename enum

12 years agoadd protocol enum
Son Hyunjun [Mon, 5 Mar 2012 12:38:15 +0000 (21:38 +0900)]
add protocol enum

12 years agomodification skin server
Son Hyunjun [Mon, 5 Mar 2012 12:30:39 +0000 (21:30 +0900)]
modification skin server

12 years agomodify code formatting
Son Hyunjun [Mon, 5 Mar 2012 11:41:38 +0000 (20:41 +0900)]
modify code formatting

12 years ago[Title] add camera sources
Jinhyung Jo [Mon, 5 Mar 2012 10:54:18 +0000 (19:54 +0900)]
[Title] add camera sources
[Type] Feature
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agomodification skin_server
Son Hyunjun [Mon, 5 Mar 2012 10:45:10 +0000 (19:45 +0900)]
modification skin_server

12 years agomodification skin_server
Son Hyunjun [Mon, 5 Mar 2012 10:38:04 +0000 (19:38 +0900)]
modification skin_server

12 years agomodification skin_server
Son Hyunjun [Mon, 5 Mar 2012 10:32:37 +0000 (19:32 +0900)]
modification skin_server

12 years agomodify skin server
Son Hyunjun [Mon, 5 Mar 2012 08:52:49 +0000 (17:52 +0900)]
modify skin server

12 years agomerge vga.c
Son Hyunjun [Mon, 5 Mar 2012 08:02:22 +0000 (17:02 +0900)]
merge vga.c

12 years agoMerge branch 'master' of git://172.21.111.188/emulator
Son Hyunjun [Mon, 5 Mar 2012 07:41:43 +0000 (16:41 +0900)]
Merge branch 'master' of git://172.21.111.188/emulator

12 years agomerge maru_hw, skin server
Son Hyunjun [Mon, 5 Mar 2012 07:40:46 +0000 (16:40 +0900)]
merge maru_hw, skin server

12 years ago[Title] Add FFmpeg source and binaries to build qemu.
Kitae Kim [Mon, 5 Mar 2012 07:27:46 +0000 (16:27 +0900)]
[Title] Add FFmpeg source and binaries to build qemu.
[Type]
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] opengl-es acceleration server and client
sangjin3.kim [Mon, 5 Mar 2012 06:02:45 +0000 (15:02 +0900)]
[Title] opengl-es acceleration server and client
[Type] Enhancement
[Module] opengl
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Modify Codec module because memory APIs have been updated on QEMU 1.0
Kitae Kim [Fri, 2 Mar 2012 05:47:01 +0000 (14:47 +0900)]
[Title] Modify Codec module because memory APIs have been updated on QEMU 1.0
[Type] enhancement
[Module] emulator / codec
[Priority] Major
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] Add QEMU TCG ld/st optimization
Yeongkyoon Lee [Fri, 2 Mar 2012 05:36:27 +0000 (14:36 +0900)]
[Title] Add QEMU TCG ld/st optimization
[Type] Enhancement
[Module] QEMU TCG
[Priority] Major
[CQ#]
[Redmine#]
[Problem] Slow performance of TCG qemu_ld/st IRs
[Cause]
[Solution] Optimization of x86 code generation for qemu_ld/st IRs
[TestCase] CoreMark, Tizen

12 years agomodify submodule for new java project structures
syeon.hwang [Tue, 28 Feb 2012 11:03:32 +0000 (20:03 +0900)]
modify submodule for new java project structures

12 years ago[Title] Add skin submodule and prepare some directory
syeon.hwang [Tue, 28 Feb 2012 10:09:10 +0000 (19:09 +0900)]
[Title] Add skin submodule and prepare some directory
[Type]
[Module] Emulator/
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years ago[Title] New emulator project based on QEMU 1.0.1
syeon.hwang [Tue, 28 Feb 2012 08:48:39 +0000 (17:48 +0900)]
[Title] New emulator project based on QEMU 1.0.1
[Type]
[Module] Emulator/
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

12 years agoVersion 1.0.1
Justin M. Forbes [Thu, 2 Feb 2012 22:44:08 +0000 (16:44 -0600)]
Version 1.0.1

Signed-off-by: Justin M. Forbes <jforbes@redhat.com>
12 years agoMerge branch 's390-1.0' of git://repo.or.cz/qemu/agraf
Justin M. Forbes [Wed, 1 Feb 2012 17:25:23 +0000 (11:25 -0600)]
Merge branch 's390-1.0' of git://repo.or.cz/qemu/agraf

12 years agoMerge branch 'ppc-1.0' of git://repo.or.cz/qemu/agraf
Justin M. Forbes [Wed, 1 Feb 2012 17:24:47 +0000 (11:24 -0600)]
Merge branch 'ppc-1.0' of git://repo.or.cz/qemu/agraf

12 years agoe1000: bounds packet size against buffer size
Anthony Liguori [Mon, 23 Jan 2012 13:30:43 +0000 (07:30 -0600)]
e1000: bounds packet size against buffer size

Otherwise we can write beyond the buffer and corrupt memory.  This is tracked
as CVE-2012-0029.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
12 years agos390: fix cpu hotplug / cpu activity on interrupts
Christian Borntraeger [Sun, 20 Nov 2011 23:12:03 +0000 (23:12 +0000)]
s390: fix cpu hotplug / cpu activity on interrupts

The add_del/running_cpu code and env->halted are tracking stopped cpus.
Sleeping cpus (idle and enabled for interrupts) are waiting inside the
kernel.
No interrupt besides the restart can move a cpu from stopped to
operational. This is already handled over there. So lets just remove
the bogus wakup from the common interrupt delivery, otherwise any
interrupt will wake up a cpu, even if this cpu is stopped (Thus leading
to strange hangs on sigp restart)

This fixes
echo 0 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu0/online
in the guest

Signed-off-by: Christian Borntraeger<borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
(cherry picked from commit 93116ac0cf9734e7b28886aedf03848b37d6785e)

12 years agos390x: add TR function for EXECUTE
Alexander Graf [Fri, 18 Nov 2011 15:45:54 +0000 (16:45 +0100)]
s390x: add TR function for EXECUTE

Newer gcc versions (or glibc?) also generate code that tries to EXECUTE
the TR opcode. Implement it so that we don't break valid guests.

Reported-by: Andreas Faerber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
12 years agopseries: Don't try to munmap() a malloc()ed TCE table
David Gibson [Wed, 11 Jan 2012 19:46:27 +0000 (19:46 +0000)]
pseries: Don't try to munmap() a malloc()ed TCE table

For the pseries machine, TCE (IOMMU) tables can either be directly
malloc()ed in qemu or, when running on a KVM which supports it, mmap()ed
from a KVM ioctl.  The latter option is used when available, because it
allows the (frequent bottlenext) H_PUT_TCE hypercall to be KVM accelerated.
However, even when KVM is persent, TCE acceleration is not always possible.
Only KVM HV supports this ioctl(), not KVM PR, or the kernel could run out
of contiguous memory to allocate the new table.  In this case we need to
fall back on the malloc()ed table.

When a device is removed, and we need to remove the TCE table, we need to
either munmap() or free() the table as appropriate for how it was
allocated.  The code is supposed to do that, but we buggily fail to
initialize the tcet->fd variable in the malloc() case, which is used as a
flag to determine which is the right choice.

This patch fixes the bug, and cleans up error messages relating to this
path while we're at it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>