Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52b2310

Browse filesBrowse files
kvmvapic: don't patch guest in dbt mode
Signed-off-by: Vitaly Chipounov <vitaly@cyberhaven.io>
1 parent 85427c6 commit 52b2310
Copy full SHA for 52b2310

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎hw/i386/kvmvapic.c

Copy file name to clipboardExpand all lines: hw/i386/kvmvapic.c
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip)
461461
void vapic_report_tpr_access(DeviceState *dev, CPUState *cs, target_ulong ip,
462462
TPRAccess access)
463463
{
464+
if (kvm_dbt_enabled()) {
465+
return;
466+
}
467+
464468
VAPICROMState *s = VAPIC(dev);
465469
X86CPU *cpu = X86_CPU(cs);
466470
CPUX86State *env = &cpu->env;
@@ -641,6 +645,10 @@ static int vapic_prepare(VAPICROMState *s)
641645
static void vapic_write(void *opaque, hwaddr addr, uint64_t data,
642646
unsigned int size)
643647
{
648+
if (kvm_dbt_enabled()) {
649+
return;
650+
}
651+
644652
VAPICROMState *s = opaque;
645653
X86CPU *cpu;
646654
CPUX86State *env;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.