IP Library Granted Patent US 8,984,234
Granted Patent B2
US 8,984,234 · App. 13/739,804 · Granted Mar 17, 2015

Subtractive validation of cache lines for virtual machines

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,984,234
App. No.
13/739,804
Granted
Mar 17, 2015
Kind
B2
Abstract

A method and system for managing a cache for a host machine is disclosed. The method includes: indicating each cache line in the cache as being in a transitional meta-state when any virtual machine hosted on the host machine moves out of the host machine; each time a particular cache line is accessed, indicating that particular cache line as no longer in the transitional meta-state; and marking the cache lines still in the transitional meta-state as invalid when a virtual machine moves back to the host machine.

Claims (45)

1. A method for managing a cache for a host machine, the method comprising:

indicating each cache line in the cache as being in a transitional meta-state when any virtual machine hosted on the host machine moves out of the host machine;

each time a particular cache line is accessed, indicating that particular cache line as no longer in the transitional meta-state; and

marking the cache lines still in the transitional meta-state as invalid when any virtual machine previously hosted on the host machine moves back to the host machine.

2. The method of claim 1 , wherein a virtual machine that moved out of the host machine is the same virtual machine moving back to the host machine.

3. The method of claim 1 , wherein a virtual machine that moved out of the host machine is different from a virtual machine moving back to the host machine.

4. The method of claim 1 , wherein the cache implements a write-through policy.

5. The method of claim 1 , wherein a respective single-bit meta-state indicator is associated with each cache line in the cache to store the transitional meta-state indication of the cache line.

6. A method for managing a cache for a host machine, the method comprising:

indicating each cache line in the cache as being in a first transitional meta-state when a first virtual machine hosted on the host machine moves out of the host machine;

indicating each cache line in the cache as being in a second transitional meta-state when a second virtual machine hosted on the host machine moves out of the host machine;

each time a particular cache line is accessed, indicating that particular cache line as no longer in any transitional meta-state; and

when the first virtual machine moves back to the host machine, marking solely the cache lines in the first transitional meta-state as invalid.

7. The method of claim 6 , further comprising:

when the second virtual machine moves back to the host machine, marking solely the cache lines in the second transitional meta-state as invalid.

8. The method of claim 6 , further comprising:

providing a predetermined number of transitional meta-states.

9. The method of claim 8 , wherein a particular transitional meta-state available among the predetermined number of transitional meta-states is associated with a particular virtual machine when that particular virtual machine moves out of the host machine.

10. The method of claim 9 , wherein the particular transitional meta-state associated with the particular virtual machine is made available for reuse after that particular virtual machine is moved back to the host machine and the cache lines in that particular transitional meta-state are marked as invalid.

11. The method of claim 9 , wherein when no transitional meta-state is available for the particular virtual machine, a forced invalidating procedure is invoked.

12. The method of claim 11 , wherein the forced invalidating procedure comprises:

selecting a transitional meta-state;

marking the cache lines in the selected transitional meta-state as invalid; and

associating the selected transitional meta-state with the particular virtual machine that is moving out of the host machine.

13. The method of claim 9 , wherein when no transitional meta-state is available for the particular virtual machine, a forced sharing procedure is invoked.

14. The method of claim 13 , wherein the forced sharing procedure comprises:

selecting a transitional meta-state currently associated with another virtual machine already moved out of the host machine; and

associating the selected transitional meta-state with both the other virtual machine already moved out of the host machine and the particular virtual machine that is moving out of the host machine.

15. The method of claim 6 , wherein the cache implements a write-through policy.

16. A system, comprising:

a host machine configured to host at least one virtual machine;

a cache configured to provide a cache storage space for the least one virtual machine; and

a cache controller configured to manage the cache in accordance to a cache management method, said method comprising:

indicating each cache line in the cache as being in a transitional meta-state when any virtual machine hosted on the host machine moves out of the host machine;

each time a particular cache line is accessed, indicating that particular cache line as no longer in the transitional meta-state; and

marking the cache lines still in the transitional meta-state as invalid when any virtual machine previously hosted on the host machine moves back to the host machine.

17. The system of claim 16 , wherein the method further comprises:

indicating each cache line in the cache as being in a second transitional meta-state when a second virtual machine hosted on the host machine moves out of the host machine;

each time a particular cache line is accessed, indicating that particular cache line as no longer in any transitional meta-state; and

when the first mentioned virtual machine moves back to the host machine, marking solely the cache lines in the first mentioned transitional meta-state as invalid.

18. The system of claim 17 , wherein the method further comprises:

when the second virtual machine moves back to the host machine, marking solely the cache lines in the second transitional meta-state as invalid.

19. The system of claim 17 , further comprising:

providing a predetermined number of transitional meta-states.

20. The system of claim 16 , wherein the cache implements a write-through policy.

Assignments (5)
TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENT RIGHTS (RELEASES RF 032856-0031) Recorded Feb 2, 2016
From: DEUTSCHE BANK AG NEW YORK BRANCH, AS COLLATERAL AGENT
To: LSI CORPORATION; AGERE SYSTEMS LLC
Reel/Frame 037684/0039 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 3, 2015
From: LSI CORPORATION
To: AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD.
Reel/Frame 035390/0388 →
TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENTS Recorded Mar 19, 2015
From: DEUTSCHE BANK AG NEW YORK BRANCH, AS COLLATERAL AGENT
To: LSI CORPORATION; AGERE SYSTEMS LLC
Reel/Frame 035226/0230 →
PATENT SECURITY AGREEMENT Recorded May 8, 2014
From: LSI CORPORATION; AGERE SYSTEMS LLC
To: DEUTSCHE BANK AG NEW YORK BRANCH, AS COLLATERAL AGENT
Reel/Frame 032856/0031 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 11, 2013
From: MAHARANA, PARAG R.; BERT, LUCA; COHEN, EARL T.
To: LSI CORPORATION
Reel/Frame 029616/0261 →